Unable to run Ionic app after update to Android Studio 3.0

后端 未结 9 2512
野趣味
野趣味 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 05:09

    If you are using Cordova build.gradle is automatically generated and when you next build the project the change in accepted answer above get overwritten back to the old that doesn't work.

    So edit platforms/android/cordova/lib/builder/GradleBuiler.js Comment out lines 136-139 and add the next line

    /*depsList += '    debugCompile(project(path: "' + libName + '", configuration: "debug"))';
    insertExclude(p);
    depsList += '    releaseCompile(project(path: "' + libName + '", configuration: "release"))';
    insertExclude(p);
        */
        depsList += "    compile project(':CordovaLib')";
        insertExclude(p);
    

提交回复
热议问题