Void android.widget.ImageView.setAnimation


#1

We started to push out our ionic apps to the google play store. Google runs it through some simulator on some phones. Some reason the only error we are getting is this.

Issue: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setAnimation(android.view.animation.Animation)' on a null object reference
FATAL EXCEPTION: main
Process: com.efsllc.efscarriercontrol, PID: 19639
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setAnimation(android.view.animation.Animation)' on a null object reference
	at org.apache.cordova.splashscreen.SplashScreen$4.run(SplashScreen.java:230)
	at android.app.Activity.runOnUiThread(Activity.java:5326)
	at org.apache.cordova.splashscreen.SplashScreen.removeSplashScreen(SplashScreen.java:220)
	at org.apache.cordova.splashscreen.SplashScreen.access$1000(SplashScreen.java:50)
	at org.apache.cordova.splashscreen.SplashScreen$5$1.run(SplashScreen.java:337)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5538)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

Seems to be a problem with how the splash screen is closed, I’m just guessing.

Ionic info

cli packages: (/home/user/.npm-global/lib/node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 6.3.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v6.12.3
npm               : 3.10.10
OS                : Linux 3.13

Environment Variables:

ANDROID_HOME : /home/user/Android/Sdk

Misc:

backend : legacy