After Android Studio 3.0 update gradle, the project actually started error unable to resolve dependency for cordovalib ... open after build.gradle saw where dependencies is written
dependencies { compile fileTree(dir: 'libs', include: '*.jar') // SUB-PROJECT DEPENDENCIES START debugCompile(project(path: "CordovaLib", configuration: "debug"))
releaseCompile(project(path: "CordovaLib", configuration: "release"))
I did not feel wrong, very nice, so he had checked whether the next 3.0 version dependencies are subject to change, and she has a check evildoer mischief, if you do not have a libary project, originally written not be a problem, but adding a lib wording
We need to make the following changes
dependencies { implementation fileTree(dir: 'libs', include: '*.jar') // SUB-PROJECT DEPENDENCIES START // debugCompile(project(path: "CordovaLib", configuration: "debug")) // releaseCompile(project(path: "CordovaLib", configuration: "release")) // SUB-PROJECT DEPENDENCIES END implementation project(':CordovaLib') debugImplementation project(':CordovaLib') releaseImplementation project(':CordovaLib') }
The implementation can be the perfect replacement to compile solve the problem