Execution failed for task ':CordovaLib:processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt

前端 未结 4 415
后悔当初
后悔当初 2020-12-21 00:44

I am learning how to use Ionic by doing a test application but I have had this problem for two days. I have looked for possible solutions but none has worked for me.

相关标签:
4条回答
  • 2020-12-21 01:19

    For us, we just had to downgrade version of android

    cordova platform rm android
    ionic cordova platform add android@6.3.0
    
    0 讨论(0)
  • 2020-12-21 01:27

    Inside android folder under platforms folder there is a file called project.properties Try replacing + with 27.1.0 in below lines

    cordova.system.library.1=com.android.support:support-v4:+
    cordova.system.library.2=com.android.support:appcompat-v7:+
    

    Also do the same thing in build.gradle file

    "com.android.support:support-v4:+"
    "com.android.support:appcompat-v7:+"
    
    0 讨论(0)
  • 2020-12-21 01:33

    This is due to compat plugin. Remove that plugin if you have older version (less than 1.2.0) and set cordova-android@6.3.0

    cordova plugin rm cordova-plugin-compat --force

    cordova plugin add cordova-plugin-compat@1.2.0

    cordova platform rm android

    ionic cordova platform add android@6.3.0

    Working at my case. Thanks :)

    0 讨论(0)
  • 2020-12-21 01:37

    The way i solved this problem is as below:

    1) npm uninstall cordova ionic

    2) npm install -g cordova@7.0.0 ionic@3.19.0

    3) cordova platform rm android

    4) cordova platform add android

    0 讨论(0)
提交回复
热议问题