Ionic build android Apk error

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 :



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

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

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 ?

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: Look at the console and network tabs for errors.