安卓新手做的第一个APP就出错了,求大神解答
这是我的log信息05-1916:58:52.026:D/jdwp(27795):sendBufferedRequest:len=0x3D05-1916:58:52.04...
这是我的log信息
05-19 16:58:52.026: D/jdwp(27795): sendBufferedRequest : len=0x3D
05-19 16:58:52.042: E/Posix(27795): [CDS]Libcore_io_Posix-throwErrnoException, functionName: access; errno: No such file or directory
05-19 16:58:52.044: D/ActivityThread(27795): BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{41604298 com.example.aboutme}}
05-19 16:58:52.046: D/AndroidRuntime(27795): Shutting down VM
05-19 16:58:52.047: W/dalvikvm(27795): threadid=1: thread exiting with uncaught exception (group=0x40ce6258)
05-19 16:58:52.053: E/AndroidRuntime(27795): FATAL EXCEPTION: main
05-19 16:58:52.053: E/AndroidRuntime(27795): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.aboutme/com.example.aboutme.welcome}: java.lang.ClassNotFoundException: com.example.aboutme.welcome
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2001)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.access$600(ActivityThread.java:134)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.os.Handler.dispatchMessage(Handler.java:99)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.os.Looper.loop(Looper.java:154)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.main(ActivityThread.java:4624)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.reflect.Method.invokeNative(Native Method)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.reflect.Method.invoke(Method.java:511)
05-19 16:58:52.053: E/AndroidRuntime(27795): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
05-19 16:58:52.053: E/AndroidRuntime(27795): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
05-19 16:58:52.053: E/AndroidRuntime(27795): at dalvik.system.NativeStart.main(Native Method)
05-19 16:58:52.053: E/AndroidRuntime(27795): Caused by: java.lang.ClassNotFoundException: com.example.aboutme.welcome
05-19 16:58:52.053: E/AndroidRuntime(27795): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1992)
05-19 16:58:52.053: E/AndroidRuntime(27795): ... 11 more 展开
05-19 16:58:52.026: D/jdwp(27795): sendBufferedRequest : len=0x3D
05-19 16:58:52.042: E/Posix(27795): [CDS]Libcore_io_Posix-throwErrnoException, functionName: access; errno: No such file or directory
05-19 16:58:52.044: D/ActivityThread(27795): BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{41604298 com.example.aboutme}}
05-19 16:58:52.046: D/AndroidRuntime(27795): Shutting down VM
05-19 16:58:52.047: W/dalvikvm(27795): threadid=1: thread exiting with uncaught exception (group=0x40ce6258)
05-19 16:58:52.053: E/AndroidRuntime(27795): FATAL EXCEPTION: main
05-19 16:58:52.053: E/AndroidRuntime(27795): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.aboutme/com.example.aboutme.welcome}: java.lang.ClassNotFoundException: com.example.aboutme.welcome
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2001)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.access$600(ActivityThread.java:134)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.os.Handler.dispatchMessage(Handler.java:99)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.os.Looper.loop(Looper.java:154)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.main(ActivityThread.java:4624)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.reflect.Method.invokeNative(Native Method)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.reflect.Method.invoke(Method.java:511)
05-19 16:58:52.053: E/AndroidRuntime(27795): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
05-19 16:58:52.053: E/AndroidRuntime(27795): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
05-19 16:58:52.053: E/AndroidRuntime(27795): at dalvik.system.NativeStart.main(Native Method)
05-19 16:58:52.053: E/AndroidRuntime(27795): Caused by: java.lang.ClassNotFoundException: com.example.aboutme.welcome
05-19 16:58:52.053: E/AndroidRuntime(27795): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-19 16:58:52.053: E/AndroidRuntime(27795): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
05-19 16:58:52.053: E/AndroidRuntime(27795): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1992)
05-19 16:58:52.053: E/AndroidRuntime(27795): ... 11 more 展开
2个回答
2014-05-21
展开全部
没有在AndroidManifest.xml里面声明com.example.aboutme.welcome这个activity吧。
更多追问追答
追问
是这样吗
追答
嗯。用.welcom做android:name的话,先确定你的packagename是不是对的。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询