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


#21

Problem right now is that it is unclear what is actually causing the error.

aapt, from the error message, is a tool from Android that is used in the build. Somehow it seems to be broken for you. You indicate that gradle did install something before it broke, so it is probably that the new “27” API level tools, API, SDK might be the cause (see also the “Download …” log that @lalogrosz posted).

Unfortunately it work for a new project for @nampdn which somehow reverses that thinking…

So you having a pure cordova project failing somehow would give another lead (and would lead you to issues.cordova.io to report it)


#22

Thank You,

I think too that this is a cordova problem. I will open an issue on the web site you indicate me.

Thanks again,

Regards,
Boris


#23

Before doing that please make sure that it actually also happens with pure cordova commands as I posted above. Don’t post any ionic command problems in the Cordova issues tracker (exception: ionic info for env information)


#24

Same issue here, i tried with pure cordova and it’s not working in the same way :s


#25

some maven comes with issue. Cause was after this maven update. I am trying but nothing works to me too.
uninstall, tryed downgrade to 15.3.0, cordova clean,
To me comes this message:
BUILD FAILED

Total time: 19.024 secs
Error: cmd: Command failed with exit code 1 Error output:
ERROR: In FontFamilyFont, unable to find attribute android:font
ERROR: In FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In FontFamilyFont, unable to find attribute android:fontWeight


#26

Ok, thanks for the indications, I will do it as you said.


#27

Someone already posted something: https://issues.apache.org/jira/browse/CB-13497
(but with only ionic commands, which will be hard for Cordova team to debug - you should really test and post a reply with pure cordova commands)


#28

I just updated Android Studio, SDK and platform, and everything works again!


#29

What versions did you update to, to get this working?


#30

Yes, I did it. I will update it with additional info.


#31

I’m able to build my app now by copy all the source code to the newly created project using ionic start with the blank template.
I think the error caused by one of my plugins, so I’m adding one plugin at a time and try to build again and again to check which plugin cause the build break.


#33

this solve problem with me

npm install  ionic@3.15.0  --save 

Or

ionic cordova platform remove android && npm install  ionic@3.15.0  --save  && ionic cordova platform add android 

#34

I’m having the same issue. I’ve tried some of the above suggestions but nothing seems to be working for me.


#35

I’m also having the same but nothing helps
The latest issue which I got is:
BUILD FAILED

Total time: 3.553 secs
Error: /Users/Sergio/Pictures/Projects/Efterskolebussen_angular4_new_app/Efterskolebussen/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformClassesWithDexForDebug’.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lorg/apache/cordova/BuildHelper;

who can help with that ?


#37

Same here, error happening in :processArmv7DebugResources

Cordova Requirements:
Requirements check results for android:

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-25
Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin
gradle

Ionic Info:

cli packages: (C:\folder\node_modules)

@ionic/cli-utils  : 1.15.0
ionic (Ionic CLI) : 3.15.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.0.0
Cordova Platforms  : android 6.2.3 browser 4.1.0
Ionic Framework    : ionic-angular 3.7.1

System:

Node : v6.11.3
npm  : 3.10.10
OS   : Windows 8.1

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : legacy

Android Studio Version: 2.3.3

Tried to create new app and it still ocurring.


#38

As before, for the people posting “me too”:


#39

Hi @Sujan12, please try to syntease the above issues and show us the possible workaround sollution…Thank You… :wink:


#40

ionic info


cli packages: (/Users/Eugene/Development/Repos/Pfizer/newton-miguia/node_modules)

    @ionic/cli-utils  : 1.15.0
    ionic (Ionic CLI) : 3.15.0

global packages:

    cordova (Cordova CLI) : 6.5.0 

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.1.2 ios 4.3.1
    Ionic Framework    : ionic-angular 3.3.0

System:

    Android SDK Tools : 25.2.5
    ios-deploy        : 1.9.1 
    ios-sim           : 6.0.0 
    Node              : v8.2.1
    npm               : 2.15.12 
    OS                : macOS Sierra
    Xcode             : Xcode 9.0.1 Build version 9A1004 

Environment Variables:

    ANDROID_HOME : /usr/local/Cellar/android-sdk/24.4.1_1

Misc:

    backend : legacy

ionic cordova requirements

> cordova requirements

Requirements check results for android:

Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-22,android-23,android-24,android-25
Gradle: installed 

Requirements check results for ios:
Apple OS X: installed darwin

Xcode: installed 9.0.1
ios-deploy: installed 1.9.1
CocoaPods: installed 

Android Studio 2.3.3

Yes have removed and re-added a few times


#41

Hi to all,

Today, I came to the office and tried to build my android project ( which is using Crosswalk for webview ) and booomm. exactly same error seen on my gradle output.

Firstly, I tried to figure it out “why this happens right now. I did not change anything.” Then gradle dependencies came to my mind. Dynamic dependencies ( see : https://docs.gradle.org/current/userguide/dependency_management.html#sub:dynamic_versions_and_changing_modules )

Android Support Library version 27.0.0 is not compatible with older versions. You need to exclude android support libraries from your dependencies which are using support library with dynamic version.

I don’t have any ionic development experience but I can tell you with an example :

For example if your dependency is Crosswalk

compile ‘org.xwalk:xwalk_core_library:20.50.533.12’

you can do this for exclude dependency :

compile(‘org.xwalk:xwalk_core_library:20.50.533.12’) {
exclude group: ‘com.android.support’
}


#42

Hi there! I ran the commands like you listed above. I’m still fairly new to Ionic so can you please let me know if what I’ve provided you with is correct?

Ionic Info:

cli packages: (C:\Users\alex.sp\ROUTE\node_modules)

@ionic/cli-utils  : 1.13.1
ionic (Ionic CLI) : 3.13.2

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.6.0

System:

Android SDK Tools : 26.0.2
Node              : v6.11.1
npm               : 3.10.10
OS                : Windows 10

Misc:

backend : pro

Ionic Cordova Requirements

Requirements check results for android:

Java JDK: installed 1.8.0

Android SDK: installed true
Android target: installed android-25

Gradle: installed C:\Program Files\Android\Android Studio\gradle\gradle-3.2\bin\gradle

Android Studio Version

Android Studio 2.3

I have removed and re-added the platform as well.