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

Kim Strasser 1,201 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).

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,807 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 46,826 Reputation points Microsoft Vendor
    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.

    0 comments No comments

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.