Java.Lang.ClassNotFoundException Didn't find class "androidx.core.splashscreen.SplashScreen" on path: DexPathList

Kim Strasser 1,321 Reputation points
2025-01-12T14:14:34.6133333+00:00

I get the following error in Activity1.cs in my Android project:

protected override void OnCreate(Bundle bundle)
{
    AndroidX.Core.SplashScreen.SplashScreen.InstallSplashScreen(this);

Java.Lang.ClassNotFoundException Message=Didn't find class "androidx.core.splashscreen.SplashScreen" on path: DexPathList[[zip file "/data/app/~~8NjzDRCJ5Z5JiKWZbb1ewA==/com.myname.appname-vHE02keTTv4yXDk6G-jBSg==/base.apk"],nativeLibraryDirectories=[/data/app/~~8NjzDRCJ5Z5JiKWZbb1ewA==/com.myname.appname-vHE02keTTv4yXDk6G-jBSg==/lib/arm64, /data/app/~~8NjzDRCJ5Z5JiKWZbb1ewA==/com.myname.appname-vHE02keTTv4yXDk6G-jBSg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]

The error came after installing/uninstalling the NuGet package Xamarin.Firebase.Crashlytics (119.3.0).

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2025-01-13T02:06:31.6466667+00:00

    Hello,

    androidx.core.splashscreen.SplashScreen is not a native component included with Maui. You need to install Xamarin.AndroidX.Core.SplashScreen to use this API.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.