这两天和同学在搞一个程序,这之间合并出了太多问题啊。先是在emulator上报the application has stopped unexpectedly,然后又在真机在报the application has stopped unexpectedly。差点奔溃,还好克服了。
在emulator报错的原因是,adb logcat下面能够大致定位错误的原因,之后步步调试就行了。
emulator上能够运行,一般真机也就没问题,不过遇到不同版本的差异就可怜了。首先真机运行不了,没有报错信息。直到意识到版本问题(emulator是2.1的,真机是2.3的),创建个emulator2.3,果然报错了。
错误提示:
java.lang.RuntimeException: Unable to instantiate application cz.teamnovak.droid.Novak ESC Track guide: java.lang.ClassNotFoundException: cz.teamnovak.droid.Novak ESC Track guide in loader dalvik.system.PathClassLoader[/data/app/cz.teamnovak.droid-1.apk]
at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
at android.app.ActivityThread.access$3000(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: cz.teamnovak.droid.Novak ESC Track guide in loader dalvik.system.PathClassLoader[/data/app/cz.teamnovak.droid-1.apk]
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
at android.app.Instrumentation.newApplication(Instrumentation.java:942)
at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)
... 11 more
果断google,良久觅得解药。
将AndroidManifest.xml中application下android:name去掉即可
参考链接:
http://yelinqing.iteye.com/blog/765384
http://stackoverflow.com/questions/3781151/java-lang-classnotfoundexception-on-working-app
分享到:
相关推荐
SEVERE: The web application [/xxx] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the...
严重: The web application [/img] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been...
kafka-eagle编译好的包
1. genymotion unfortunately has stopped , 完美解决。 2. 解决genymotion-arm-translation.zip无法拖拽安装的完美问题。 4. genymotion,拖进去后变成Files successfully copied to: /sdcard/Download, 完美解决...
Examine what has happened when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another problem affecting...
office 2013 EPM插件,EPM add-in for Microsoft Office 是在由SAP BusinessObjects开发类别 Miscellaneous Shareware 软件。EPM系统插件add-in安装 - EPM 系统插件 Add-in 安装 说明: Add-in 为依附在 excel 上的一...
--- The development of this project has stopped --- Simple Explorer is a open source file explorer. License Copyright 2013 - 2015 Daniel F. This program is free software; you can redistribute it and/...
报错1: Using python /usr/bin/python ...REASON: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java and set property server.jdbc.driver.path=[path/to/c
截止 2019.1.4更新的最新版本,供个人免费使用,省去了去填资料下载的麻烦。
Canon PowerShot SDK News ...Development of the PowerShot (PS-Rec) SDK has now stopped Only the Digital EOS SDK (ED-SDK) will continue to be developed and supported (including Vista support) next year
- Changed the mechanism to check for the required DirectX Direct3D as the previous method did not work on some system (some W2003 servers). - Enhanced the mechanism to report memory hardware errors ...
NULL 博文链接:https://xblia.iteye.com/blog/1213316
Examine what has happened, when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.
To fix "Google Play Services has stopped" errors, try opening the app info dialog and select "clear cache". If that does not work, try the "uninstall updates" option. Then download and re-install the ...
Examine what has happened, when your program has stopped. Change things in your program, so you can experiment with correcting the effects of one bug and go on to learn about another.
When the application server written by the same company—the SpringSource dm Server—first came out in April 2008, even though it was in the beta release, I immediately installed it on my machine ...
- The driver could crash when the driver was stopped (either by hand or when the demo time was expired) and in the same moment the NetLink connection was disturbed. - Improvements on the seamless ...
Bruce Lahn, professor of human genetics at the University of Chicago, anticipates the ability to produce “unlimited supplies” of transplantable human organs without the need for human donors....
This library allows launching a custom activity when the app crashes, instead of showing the hated "Unfortunately, X has stopped" dialog. How to use One-step install Add the following dependency to ...
fgoalattain stopped because it exceeded the function evaluation limit, options.MaxFunctionEvaluations = 400 (the default value). x = 0.0123764041883559 6.60270284335016e-05 6.60195797535719e-05 ...