Android intermittent class not found run time exception

后端 未结 1 1013
灰色年华
灰色年华 2020-12-18 07:27

One or two of my users experience the above class not found run time exception when trying to run my app.

How can that happen and how can I fix it? Is it a bad insta

相关标签:
1条回答
  • 2020-12-18 07:45

    I'd check to see if these users are installing the app on an SD card: if the app is installed the app icon might be visible in the application list (since that is stored on-device) but if the SD card is unavailable (removed or maybe mounted for reading by a PC over USB) when the user taps the application icon the attempts to load will fail. You will notice:

    ComponentInfo{my,app.app.app/com.android.app.app.app}: java.lang.ClassNotFoundException: com.android.app.app.app in loader dalvik.system.PathClassLoader[/mnt/asec/my,app.app.app-1/pkg.apk] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659) at 
    

    in your stack trace above: is /mnt/asec the SD card storage path on the device?

    0 讨论(0)
提交回复
热议问题