AVD无法启动,给出IllegalStateException

时间:2014-03-26 13:59:07

标签: android avd

在AVD上运行我的应用程序时,我在启动时遇到这些错误:

03-26 06:25:29.061: E/AndroidRuntime(1969): FATAL EXCEPTION: main
03-26 06:25:29.061: E/AndroidRuntime(1969): java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.IllegalStateException: Unable to get package info for com.wampec.activeparty; is package not installed?
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.LoadedApk.makeApplication(LoadedApk.java:509)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4417)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.ActivityThread.access$1300(ActivityThread.java:141)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.os.Looper.loop(Looper.java:137)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.ActivityThread.main(ActivityThread.java:5103)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at java.lang.reflect.Method.invokeNative(Native Method)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at java.lang.reflect.Method.invoke(Method.java:525)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at dalvik.system.NativeStart.main(Native Method)
03-26 06:25:29.061: E/AndroidRuntime(1969): Caused by: java.lang.IllegalStateException: Unable to get package info for com.wampec.activeparty; is package not installed?
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:369)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.LoadedApk.getClassLoader(LoadedApk.java:322)
03-26 06:25:29.061: E/AndroidRuntime(1969):     at android.app.LoadedApk.makeApplication(LoadedApk.java:501)
03-26 06:25:29.061: E/AndroidRuntime(1969):     ... 11 more

为什么会出现这些问题,我该如何解决?

1 个答案:

答案 0 :(得分:1)

您可以尝试做一些事情:

  • 从您的设备/模拟器手动卸载应用程序
  • 废弃你的AVD并创建一个新的
  • 清理项目
  • 从工作区中删除项目并再次导入
  • 最后的手段:卸载您的IDE(eclipse,netbeans等..)并重新安装。

对我来说,通常是其中一件作品。祝你好运!