该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
所有编码完成之后,运行错误,跑不起来,有没有大神帮我看看,现在的错误我贴在下面
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{it.example.text/it.example.text.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "it.example.text.MainActivity" on path: DexPathList[[zip file "/data/app/it.example.text-1.apk"],nativeLibraryDirectories=[/data/app-lib/it.example.text-1, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2384)
at android.app.ActivityThread.access$800(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5300)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:652)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "it.example.text.MainActivity" on path: DexPathList[[zip file "/data/app/it.example.text-1.apk"],nativeLibraryDirectories=[/data/app-lib/it.example.text-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2250)
... 11 more