将我的代码复制/粘贴到新项目后出错

时间:2013-12-28 23:20:10

标签: android eclipse project

所以...我正在开发一个应用程序,我不得不改变我的项目以添加Google API(我也想改变项目的名称)。 我将代码复制/粘贴到一个新项目中,即使Eclipse没有显示任何错误,我也会在logCat中找到一个。

12-28 23:10:44.945: E/AndroidRuntime(1259): FATAL EXCEPTION: main
12-28 23:10:44.945: E/AndroidRuntime(1259): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{eu.nigsia.christianismissues/eu.nigsia.christianismsissues.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "eu.nigsia.christianismsissues.MainActivity" on path: DexPathList[[zip file "/data/app/eu.nigsia.christianismissues-1.apk"],nativeLibraryDirectories=[/data/app-lib/eu.nigsia.christianismissues-1, /vendor/lib, /system/lib]]
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.os.Looper.loop(Looper.java:137)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread.main(ActivityThread.java:5103)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at java.lang.reflect.Method.invokeNative(Native Method)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at java.lang.reflect.Method.invoke(Method.java:525)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at dalvik.system.NativeStart.main(Native Method)
12-28 23:10:44.945: E/AndroidRuntime(1259): Caused by: java.lang.ClassNotFoundException: Didn't find class "eu.nigsia.christianismsissues.MainActivity" on path: DexPathList[[zip file "/data/app/eu.nigsia.christianismissues-1.apk"],nativeLibraryDirectories=[/data/app-lib/eu.nigsia.christianismissues-1, /vendor/lib, /system/lib]]
12-28 23:10:44.945: E/AndroidRuntime(1259):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
12-28 23:10:44.945: E/AndroidRuntime(1259):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
12-28 23:10:44.945: E/AndroidRuntime(1259):     ... 11 more

任何想法?

0 个答案:

没有答案