IONIC 3: Execution failed for task ':app:processDebugResources'

前端 未结 9 2081
执笔经年
执笔经年 2021-02-12 13:16

Execution failed for task \':app:processDebugResources\'.

This error comes when execute \"ionic cordova build android\". Searched for a long time but no luck. Anyone can

相关标签:
9条回答
  • 2021-02-12 13:26

    Visit project.properties in your Ionic project...that is platform/android/project.properties

    and replace like below

    Project target.

    target=android-26
    android.library.reference.1=CordovaLib
    android.library.reference.2=app
    cordova.system.library.1=com.android.support:support-v4:24.1.1+
    cordova.system.library.2=com.android.support:appcompat-v7:23+
    cordova.gradle.include.1=cordova-plugin-telerik-imagepicker/multipurposetheme- 
    ignorelinterrors.gradle
    cordova.gradle.include.2=cordova-plugin-telerik-imagepicker/multipurposetheme- 
    androidtarget.gradle
    cordova.system.library.3=com.android.support:support-v4:27.1.0
    
    0 讨论(0)
  • 2021-02-12 13:28

    I just solve this issue by removing this line of code cordova.system.library.15=com.android.support:support-v4:+ , and the path to the file is platforms/android/project.properties

    0 讨论(0)
  • 2021-02-12 13:33

    Solution link

    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)
  • 2021-02-12 13:36

    This problem occurred after i uninstall the Firebase plugin.

    I tried alot of things but the simplest solution that i found was start a new project and replace the src folder with the new contents.

    0 讨论(0)
  • 2021-02-12 13:39

    run into the same error. found this solution to fix it:

    https://stackoverflow.com/a/49172982/7655348

    Replace com.android.support:support-v4:+ with com.android.support:support-v4:27.1.0 in project.properties file under platform/android folder

    0 讨论(0)
  • 2021-02-12 13:39

    Also this solution worked for me:

    https://forum.ionicframework.com/t/failed-build-for-android-execution-failed-for-task-app-processdebugresources/124551/3

    Go to platforms/android/app/src/main/res/values/strings.xml and add:

    <string name="fb_app_id">YOUR_FB_APP_ID</string>
    <string name="fb_app_name">YOUR_FB_APP_NAME</string>
    

    Then I had to did cordova clean and ionic cordova build android

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