我在eclipse中重命名了我的项目,我试图在我的设备上运行我的应用程序。但是自从我变得不幸以来,App已经停止了。我手动编辑AndroidManifest.xml以检查文件路径是否正确,因为AndroidManifest似乎没有反映重命名项目后的更改,如果您提供帮助,我将不胜感激。这是logcat
02-09 11:38:43.872: D/AndroidRuntime(26838): Shutting down VM
02-09 11:38:43.880: E/AndroidRuntime(26838): FATAL EXCEPTION: main
02-09 11:38:43.880: E/AndroidRuntime(26838): Process: com.ummahtalk.community, PID: 26838
02-09 11:38:43.880: E/AndroidRuntime(26838): java.lang.RuntimeException: Unable to instantiate application com.ummahtalk.community.SpikaApp: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.LoadedApk.makeApplication(LoadedApk.java:563)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4491)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.access$1500(ActivityThread.java:144)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.os.Handler.dispatchMessage(Handler.java:102)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.os.Looper.loop(Looper.java:135)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.ActivityThread.main(ActivityThread.java:5221)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.reflect.Method.invoke(Native Method)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.reflect.Method.invoke(Method.java:372)
02-09 11:38:43.880: E/AndroidRuntime(26838): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-09 11:38:43.880: E/AndroidRuntime(26838): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-09 11:38:43.880: E/AndroidRuntime(26838): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:43.880: E/AndroidRuntime(26838): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.Instrumentation.newApplication(Instrumentation.java:979)
02-09 11:38:43.880: E/AndroidRuntime(26838): at android.app.LoadedApk.makeApplication(LoadedApk.java:558)
02-09 11:38:43.880: E/AndroidRuntime(26838): ... 10 more
02-09 11:38:43.880: E/AndroidRuntime(26838): Suppressed: java.lang.ClassNotFoundException: com.ummahtalk.community.SpikaApp
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.Class.classForName(Native Method)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-09 11:38:43.880: E/AndroidRuntime(26838): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-09 11:38:43.880: E/AndroidRuntime(26838): ... 13 more
02-09 11:38:43.880: E/AndroidRuntime(26838): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
02-09 11:38:53.991: D/AndroidRuntime(27142): Shutting down VM
02-09 11:38:53.993: E/AndroidRuntime(27142): FATAL EXCEPTION: main
02-09 11:38:53.993: E/AndroidRuntime(27142): Process: com.ummahtalk.community, PID: 27142
02-09 11:38:53.993: E/AndroidRuntime(27142): java.lang.RuntimeException: Unable to instantiate application com.ummahtalk.community.SpikaApp: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.LoadedApk.makeApplication(LoadedApk.java:563)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4491)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.access$1500(ActivityThread.java:144)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.os.Handler.dispatchMessage(Handler.java:102)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.os.Looper.loop(Looper.java:135)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.ActivityThread.main(ActivityThread.java:5221)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.reflect.Method.invoke(Native Method)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.reflect.Method.invoke(Method.java:372)
02-09 11:38:53.993: E/AndroidRuntime(27142): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-09 11:38:53.993: E/AndroidRuntime(27142): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
02-09 11:38:53.993: E/AndroidRuntime(27142): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ummahtalk.community.SpikaApp" on path: DexPathList[[zip file "/data/app/com.ummahtalk.community-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
02-09 11:38:53.993: E/AndroidRuntime(27142): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.Instrumentation.newApplication(Instrumentation.java:979)
02-09 11:38:53.993: E/AndroidRuntime(27142): at android.app.LoadedApk.makeApplication(LoadedApk.java:558)
02-09 11:38:53.993: E/AndroidRuntime(27142): ... 10 more
02-09 11:38:53.993: E/AndroidRuntime(27142): Suppressed: java.lang.ClassNotFoundException: com.ummahtalk.community.SpikaApp
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.Class.classForName(Native Method)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
02-09 11:38:53.993: E/AndroidRuntime(27142): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
02-09 11:38:53.993: E/AndroidRuntime(27142): ... 13 more
02-09 11:38:53.993: E/AndroidRuntime(27142): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
02-09 11:39:54.371: I/Process(27142): Sending signal. PID: 27142 SIG: 9
答案 0 :(得分:0)
我使用Android工具重命名了项目>>重命名应用程序包但后来我发现所有内容都没有正确重命名然后我尝试了重构>重命名并解决了它
答案 1 :(得分:0)
刚遇到确切的问题。我尝试了以上所有非工作的解决方案。 我通过退出android studio修复它,将整个项目文件夹复制到一个新位置,启动android studio并从新位置打开项目。