Deepa Deepa - 4 months ago 62
AngularJS Question

Ionic app shows white screen on android 4 versions

I am developing ionic application which works fine in browser as well in android 5 versions but when i try to install my same apk in andriod 4 versions it simply displays white screen doesnt show up anything.

i had tried installing crosswalk, whitelist and splash screen plugins after installing all plugins i am unable to build. i am attaching the screenshots of installed plugins and build error please help where i am going wrong.

Please find the image where i installed the plugins

Also, Please find the error i am getting while building the app.

Please find the build error image

I am having the following in config.xml file

<preference name="android-minSdkVersion" value="16" />
<preference name="android-targetSdkVersion" value="16" />


Ionic officially supports Android versions 4.1.x and above. Your min SDK version is the required 4.1.x but are you testing on an older Android version like 4.0.x? You could set:

<preference name="android-minSdkVersion" value="15" />
<preference name="android-targetSdkVersion" value="19" />

See this post on the official Ionic blog:

EDIT based on your comment:

You should see this great answer on SO

In the answer above they state that you should make sure you have Android Support Repository and Google Repository downloaded because crosswalk plugin is building two apks : one for ARM, the other for x86.