本文介绍了Android的间歇类未找到运行时异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个或两个我的用户体验尝试运行我的应用程序时,上面的类没有发现运行时异常。

这怎么可能发生,我该如何解决?它是一个坏的安装?

感谢

通过Android的发布商网站获得堆栈跟踪。我不能复制这个自己。(com.android.app.app.app)是在清单中定义的应用程序/活动的名称。

解决方案

我会检查,看看是否这些用户在SD卡上安装应用程序:如果安装应用程序的应用程序图标可能会在应用程序列表中可见(因为存储设备上),但如果在SD卡是不可用(已删除或者安装用于由PC通过USB读取)当用户点击的应用程序图标的尝试装载将失败。你会发现:

  ComponentInfo {我,app.app.app / com.android.app.app.app}:抛出java.lang.ClassNotFoundException:com.android.app.app.app装载机dalvik.system.PathClassLoader [/mnt/asec/my,app.app.app-1/pkg.apk]在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2659)在
 

在上面的堆栈跟踪:是的/ mnt / ASEC 在设备上的SD卡存储路径

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 install?

Thanks

Paul

Stack trace received through Android Publishers site. I cannot replicate this myself.(com.android.app.app.app) is the name of the app/activity as defined in the manifest.

解决方案

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?

这篇关于Android的间歇类未找到运行时异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 05:01
查看更多