Error while generating APK application


#1

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


#2

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


#3

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


#4

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


#5

@kadi60 Also try to downgrade platform version.


#6

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


#7

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


#8

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.


#9

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