我正在开发一款基于Apollo的音乐播放器,这是一款专为Cyanogenmod打造的应用程序。在将应用程序加载并启动到模拟器上后,logcat视图中出现以下内容
05-26 08:58:16.539: E/Trace(1108): error opening trace file: No such file or directory (2)
05-26 08:58:16.687: W/dalvikvm(1108): Unable to resolve superclass of Lcom/echolabs/echo/ui/activities/BaseActivity; (146)
05-26 08:58:16.697: W/dalvikvm(1108): Link of class 'Lcom/echolabs/echo/ui/activities/BaseActivity;' failed
05-26 08:58:16.697: W/dalvikvm(1108): Unable to resolve superclass of Lcom/echolabs/echo/ui/activities/HomeActivity; (421)
05-26 08:58:16.697: W/dalvikvm(1108): Link of class 'Lcom/echolabs/echo/ui/activities/HomeActivity;' failed
05-26 08:58:16.697: D/AndroidRuntime(1108): Shutting down VM
05-26 08:58:16.717: W/dalvikvm(1108): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
05-26 08:58:16.729: E/AndroidRuntime(1108): FATAL EXCEPTION: main
05-26 08:58:16.729: E/AndroidRuntime(1108): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.echolabs.echo/com.echolabs.echo.ui.activities.HomeActivity}: java.lang.ClassNotFoundException: Didn't find class "com.echolabs.echo.ui.activities.HomeActivity" on path: /data/app/com.echolabs.echo-1.apk
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread.access$600(ActivityThread.java:141)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.os.Looper.loop(Looper.java:137)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread.main(ActivityThread.java:5041)
05-26 08:58:16.729: E/AndroidRuntime(1108): at java.lang.reflect.Method.invokeNative(Native Method)
05-26 08:58:16.729: E/AndroidRuntime(1108): at java.lang.reflect.Method.invoke(Method.java:511)
05-26 08:58:16.729: E/AndroidRuntime(1108): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-26 08:58:16.729: E/AndroidRuntime(1108): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-26 08:58:16.729: E/AndroidRuntime(1108): at dalvik.system.NativeStart.main(Native Method)
05-26 08:58:16.729: E/AndroidRuntime(1108): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.echolabs.echo.ui.activities.HomeActivity" on path: /data/app/com.echolabs.echo-1.apk
05-26 08:58:16.729: E/AndroidRuntime(1108): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
05-26 08:58:16.729: E/AndroidRuntime(1108): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-26 08:58:16.729: E/AndroidRuntime(1108): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
05-26 08:58:16.729: E/AndroidRuntime(1108): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
05-26 08:58:16.729: E/AndroidRuntime(1108): ... 11 more
老实说,绝对没有想法来自这些问题。如果那里的任何人都能找到问题的根源,那将非常感激。谢谢!
答案 0 :(得分:0)
问题在于您的R.java生成的文件。
转到Project
- >你的日食Clean
。
并等待您的项目重建。