0

Can someone please help me out with this error

Error:Execution failed for task ':app:javaPreCompileDebug'. Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - compiler-4.4.0.jar (compiler-4.4.0.jar) Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

gradle file:

   android {
   compileSdkVersion 26
   buildToolsVersion "26.0.3"

   defaultConfig { 
   applicationId "com.finalyear.myproject" 
   minSdkVersion 17 
   targetSdkVersion 
   26 versionCode 1
   versionName "1.0"
   testInstrumentationRunner 
   "android.support.test.runner.AndroidJUnitRunner" 
            }
    }
Bishoy Kamel
  • 2,327
  • 2
  • 17
  • 29
  • is it for android v3.0 or androidstudio 3.0 – Whats Going On Feb 03 '18 at 11:30
  • 1
    Please show us your application level `build.gradle` – Mariano Córdoba Feb 03 '18 at 11:37
  • Try this https://stackoverflow.com/questions/47112106/errorexecution-failed-for-task-appjavaprecompiledebug-android-3-0-lombok – Chandralal Feb 03 '18 at 11:39
  • This is my build.gradle apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.3" defaultConfig { applicationId "com.finalyear.myproject" minSdkVersion 17 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" – afolabi Feb 03 '18 at 12:46
  • Please go through the doc here: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html – Debdeep Feb 03 '18 at 20:01

0 Answers0