cyph / cordova-plugin-chooser

Cordova file chooser plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AAPT2 error on Android

rricamar opened this issue · comments

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.

@rricamar how did you fix this? +1 for me with Ionic 3.

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 👍

Oh well, thank you!