简体   繁体   中英

Gradle build successfully but Getting Runtime Error Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not create service of type AnnotationProcessorDetector using JavaGradleScopeServices.createAnnotationProcessorDetector().

I'm getting the above error, I tried alot of things (Set jdk path,add support-annotation library etc)to remove this error but nothing changed. I'm using Android Studio 3.0.1 and toolbar inside my app,minSdk 15 ,maxSdk 26.

This is my gradle:

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.0
testImplementation 'junit:junit:4.12'

There would be sure some error with this, try to toggle gradle view . See below image. You will find error. .

Also click on red titled line in this view, it will tell you error.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM