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)
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)
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
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)
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.
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’.
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.
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 :
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?