After upgrading to Android studio 3.0.1, when building cordova project, if error happens for
Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve project :CordovaLib. Open File Show Details
Then it can be fixed by updating the android module's build.gradle with the below change:
Unable to resolve dependency for ':@debug/compileClasspath': Could not resolve project :CordovaLib. Open File Show Details
Then it can be fixed by updating the android module's build.gradle with the below change:
dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START    debugCompile(project(path: "CordovaLib", configuration: "debug"))
    releaseCompile(project(path: "CordovaLib", configuration: "release"))
    compile project(':CordovaLib')
    // SUB-PROJECT DEPENDENCIES END
No comments:
Post a Comment