Ionic build android Apk error


#1

i’m using ionic framework version 2.2.3 , cordova 7.1.0 and node 8.9.2 when i’m running ionic build android ( after adding the paltform to the project ) .ANDROID_HOME and JAVA_HOME are well set .i’m getting the error below :

c1


#2

Unprobable.

Please post your ionic info output.
If your Ionic CLI version is <3, please update. 2.x is not supported any more.


#3

While you running your SDK manager run with administrative privileges. Because you have not accepted the licence agreements of android sdk Platform 26.


#4

That issue is fixed by updating android SDK manager tools , now when i’m the running the apk into an android device , only a white screen appears , i have already set the min, max SDK ( config.xml) file . any suggestion ?


#5

See my first response. No use in helping you if you are using outdated libraries or similar things.

For debugging a white screen:
Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.