AAPT2 error on Android
rricamar opened this issue · comments
Ruben Rica commented
Hi,
Today I was using your plugin, after set the
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:largeHeap="true" />
</edit-config>
on my config.xml
, I faced this error:
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
While trying to do a ionic cordova build android
. If I remove that, the build is successful as always.
Info: <engine name="android" spec="~7.0.0" />
Thank you in advance.
Danilo Polani commented
@rricamar how did you fix this? +1 for me with Ionic 3.
Ruben Rica commented
Hi @danilopolani , finally I used the Cordova Camera Plugin ( https://ionicframework.com/docs/v3/native/camera/ , https://github.com/apache/cordova-plugin-camera#cameramediatype--enum ) which allows select files from any type with the ALLMEDIA
config 👍
Danilo Polani commented
Oh well, thank you!