cordova-android icon indicating copy to clipboard operation
cordova-android copied to clipboard

Cordova Release Build AAPT2 Exception

Open 152hq opened this issue 8 years ago • 4 comments

Hi,

I am trying to sign the Cordova app but every time Android Studios throws the below error java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details |  

I have tried the below ways but no luck so far

  • addding android.enableAapt2=false to gradle-wrapper.properties
  • reinstalling cordova/android studio

Version Details

  • cordova -> 8.0.0
  • cordova-android -> 7.1.1
  • gradle -> 4.4
  • gradule-plugin -> 3.1
  • android-studio -> 3.1.4

Please let me know a solution as this is a blocker. Thanks

152hq avatar Sep 18 '18 00:09 152hq

What do the logs say? Is cordova requirements happy?

janpio avatar Sep 18 '18 07:09 janpio

I have same issue in Ionic v1, I want to build an android. Is there any solutions?????

gokujy avatar Nov 19 '19 12:11 gokujy

Closing due to lack of response.

In general, these kind of errors are usually related to a misconfiguration of the android sdk (missing a required version and such).

breautek avatar Apr 13 '20 02:04 breautek

Found any solution yet?

ghost avatar Jul 29 '20 08:07 ghost