Unable to run Ionic app after update to Android Studio 3.0

后端 未结 9 2496
野趣味
野趣味 2020-12-13 04:32

Here\'s my Ionic Info

cli packages: (/Users/billb/dev/customer-mkt-app/node_modules)

@ionic/cli-utils  : 1.15.2
ionic (I         


        
9条回答
  •  失恋的感觉
    2020-12-13 04:57

    If you get this kind of error in Android Studio 3.0.1:

    Unable to resolve dependency for :@debug/compileClasspath’: Could not resolve project :CordovaLib.
    

    Go to build.gradle file -> find dependencies and change it like this

    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
    }
    

提交回复
热议问题