Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13497

Ionic Cordova Android build broken after gradle dependencies update: Execution failed for task ‘:processDebugResources’. > com.android.ide.common.process.ProcessException: Failed to execute aapt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-android
    • None

    Description

      Hi, I recently ran the command “ionic cordova run android” and gradle tried to download some dependecies:

      Incremental java compilation is an incubating feature.
      Download https://maven.google.com/com/android/support/support-v4/27.0.0/support-v4-27.0.0.pom
      Download https://maven.google.com/com/android/support/customtabs/27.0.0/customtabs-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-compat/27.0.0/support-compat-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-media-compat/27.0.0/support-media-compat-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-core-utils/27.0.0/support-core-utils-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-core-ui/27.0.0/support-core-ui-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-fragment/27.0.0/support-fragment-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.pom
      Download https://maven.google.com/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
      Download https://maven.google.com/com/android/support/support-compat/27.0.0/support-compat-27.0.0.aar
      Download https://maven.google.com/com/android/support/support-media-compat/27.0.0/support-media-compat-27.0.0.aar
      Download https://maven.google.com/com/android/support/support-core-utils/27.0.0/support-core-utils-27.0.0.aar
      Download https://maven.google.com/com/android/support/support-core-ui/27.0.0/support-core-ui-27.0.0.aar
      Download https://maven.google.com/com/android/support/support-fragment/27.0.0/support-fragment-27.0.0.aar
      Download https://maven.google.com/com/android/support/support-v4/27.0.0/support-v4-27.0.0.aar
      Download https://maven.google.com/com/android/support/customtabs/27.0.0/customtabs-27.0.0.aar
      

      After that, at the end the build fails with this message:

      ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
      ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
      ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
      
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processDebugResources'.
      > com.android.ide.common.process.ProcessException: Failed to execute aapt
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      [ERROR] An error occurred while running cordova run android (exit code 1).
      

      I open an issue on ionicframework - but after the troubleshooting they told me that this is cordova problem.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            bisaicx Boris Isaic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: