question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
abransoncommented, Jul 6, 2021

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.

1reaction
rudestormcommented, Aug 19, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spotify crashes with Nullpointer at com.google.android.play ...
I have been using Spotify with microg for quit... ... crashes with Nullpointer at com.google.android.play.core.missingsplits.a.a() #1142.
Read more >
Spotify app is crashing while clicking on play but...
As soon as click on play button, the app crashes. I have tried troubleshooting at my end as follows: Login, logout; Cleared cache...
Read more >
NullPointerException when running from Google Play but not ...
I've updated my app on Google Play and nothing happens, still crashing on the same Activity , I do now know what to...
Read more >
Why Your Spotify App Keeps Crashing, and 7 Ways to Fix It
If your Spotify app keeps crashing, there are several simple troubleshooting steps you can try to resolve the problem.
Read more >
13 Ways to Fix Spotify Keeps Crashing Issue on Windows
Is Spotify randomly closing on your PC? You're not alone! Here are thirteen different ways to fix Spotify crashing on Windows.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found