GmsCore: Spotify crashes with Nullpointer at com.google.android.play.core.missingsplits.a.a()

I am not 100% sure if this is caused by microg, but as the exception happens in com.google.android.play.core I report it here. Also this might be more a case of a missing feature than a bug.

I have been using Spotify with microg for quite a while, but an update a while ago broke it. I think it has something to do with the fact that it now uses split APK, but I use playmaker to install the APKs.

Whenever I start Spotify, it immediately crashes with the following exception:

java.lang.RuntimeException: Unable to create application com.spotify.music.SpotifyApplication: java.lang.NullPointerException: Attempt to invoke interface method ‘boolean com.google.android.play.core.missingsplits.a.a()’ on a null object reference

which seems to indicate that it tries to handle missing APKs from a split APK, but com.google.android.play.core.missingsplits is not implemented in microg.

Logcat

08-10 16:07:42.171 939 1086 I ActivityManager: Start proc 10741:com.spotify.music/u0a107 for activity {com.spotify.music/com.spotify.music.MainActivity} 08-10 16:07:42.231 10741 10741 D AndroidRuntime: Shutting down VM 08-10 16:07:42.232 10741 10741 E AndroidRuntime: FATAL EXCEPTION: main 08-10 16:07:42.232 10741 10741 E AndroidRuntime: Process: com.spotify.music, PID: 10741 08-10 16:07:42.232 10741 10741 E AndroidRuntime: java.lang.RuntimeException: Unable to create application com.spotify.music.SpotifyApplication: java.lang.NullPointerException: Attempt to invoke interface method ‘boolean com.google.android.play.core.missingsplits.a.a()’ on a null object reference 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6465) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.ActivityThread.access$1300(ActivityThread.java:219) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7356) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method ‘boolean com.google.android.play.core.missingsplits.a.a()’ on a null object reference 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at com.spotify.music.SpotifyApplication.onCreate(SourceFile:2) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1189) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460) 08-10 16:07:42.232 10741 10741 E AndroidRuntime: … 8 more

I tried to workaround this by downloading a xapk file from some website, unzipping it, verifying the signature of all the APK files in it and running adb install-multiple *.apk. It went through, but nothing changed (spotify still crashes).

Is there any way to install an APK which uses some split APK feature with microg?

Technical details:

  • Oneplus 3T
  • lineageos4microg 17.1 (built on 15.06.2020)
  • com.spotify.music 8.5.70.868
  • microg services core 0.2.10.19420-dirty (I am aware that this is not the latest version, but I am unable to rebuild lineageos4microg at the moment)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

I just got this with Spotify installed from the Aurora store. Fixed it by switching the install method in Aurora from the Native to the Session Installer.

Just in case anyone else happens upon this issue as I did.

Spotify works fine with the most up to date version of microG