Error while generating APK application

Hi,

I’am developing an IONIC 3 application , if I run it on browser it works fine , but once deploying it in genymotion , or generating APK , give the following error

FAILURE: Build failed with an exception.

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

Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

can you please give help

Did you renamed lastly any image extension by hand e.g. PNG to JPG?

No I don’t , I always work with same images

Could you check this thread? It concerns the same type of error and it is Solved.

@kadi60 Also try to downgrade platform version.

@mikeon how to downgrade plateform version , I am working with version 7 of android

if I downgrade plateform version , can this causes problems for the application?

hi @kadi60, I had the same issue as I described in the link (thanks @mikeon for the reference). I hadn’t any problem after downgrading.

1 Like

Ok , thank you alot , I solved the problem , it was just because I added 3 lines of code to add permisson to access to internet , but they was wrong , by the way I ask how to add permission to the internet , if someone can help , I need it realy , thank you a lot

cdt