为了账号安全,请及时绑定邮箱和手机立即绑定

老师,我做的这个短信发送有问题

10-08 13:36:03.120: D/dalvikvm(1354): Trying to load lib /data/data/com.example.zhuce/lib/libsmssdk.so 0xa6b56e10

10-08 13:36:03.172: D/dalvikvm(1354): Added shared lib /data/data/com.example.zhuce/lib/libsmssdk.so 0xa6b56e10

10-08 13:36:03.184: D/dalvikvm(1354): No JNI_OnLoad found in /data/data/com.example.zhuce/lib/libsmssdk.so 0xa6b56e10, skipping init

10-08 13:36:03.320: D/dalvikvm(1354): GC_CONCURRENT freed 351K, 10% free 8068K/8903K, paused 14ms+0ms, total 37ms

10-08 13:36:03.320: D/dalvikvm(1354): WAIT_FOR_CONCURRENT_GC blocked 11ms

10-08 13:36:03.364: D/AndroidRuntime(1354): Shutting down VM

10-08 13:36:03.364: W/dalvikvm(1354): threadid=1: thread exiting with uncaught exception (group=0xa6312288)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): Unable to start activity ComponentInfo{com.example.zhuce/com.example.zhuce.MainActivity}: java.lang.NullPointerException

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.zhuce/com.example.zhuce.MainActivity}: java.lang.NullPointerException

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread.access$600(ActivityThread.java:130)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.os.Handler.dispatchMessage(Handler.java:99)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.os.Looper.loop(Looper.java:137)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread.main(ActivityThread.java:4745)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at java.lang.reflect.Method.invokeNative(Native Method)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at java.lang.reflect.Method.invoke(Method.java:511)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at dalvik.system.NativeStart.main(Native Method)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): Caused by: java.lang.NullPointerException

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at com.example.zhuce.MainActivity.onCreate(MainActivity.java:33)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.Activity.performCreate(Activity.java:5008)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)

10-08 13:36:03.364: A/MobUncaughtExceptionHandler(1354): ... 11 more

10-08 13:36:03.400: E/AndroidRuntime(1354): FATAL EXCEPTION: main

10-08 13:36:03.400: E/AndroidRuntime(1354): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.zhuce/com.example.zhuce.MainActivity}: java.lang.NullPointerException

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread.access$600(ActivityThread.java:130)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.os.Handler.dispatchMessage(Handler.java:99)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.os.Looper.loop(Looper.java:137)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread.main(ActivityThread.java:4745)

10-08 13:36:03.400: E/AndroidRuntime(1354): at java.lang.reflect.Method.invokeNative(Native Method)

10-08 13:36:03.400: E/AndroidRuntime(1354): at java.lang.reflect.Method.invoke(Method.java:511)

10-08 13:36:03.400: E/AndroidRuntime(1354): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

10-08 13:36:03.400: E/AndroidRuntime(1354): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

10-08 13:36:03.400: E/AndroidRuntime(1354): at dalvik.system.NativeStart.main(Native Method)

10-08 13:36:03.400: E/AndroidRuntime(1354): Caused by: java.lang.NullPointerException

10-08 13:36:03.400: E/AndroidRuntime(1354): at com.example.zhuce.MainActivity.onCreate(MainActivity.java:33)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.Activity.performCreate(Activity.java:5008)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)

10-08 13:36:03.400: E/AndroidRuntime(1354): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)

10-08 13:36:03.400: E/AndroidRuntime(1354): ... 11 more

10-08 13:36:03.704: D/dalvikvm(1354): GC_CONCURRENT freed 369K, 11% free 8114K/9031K, paused 12ms+1ms, total 18ms

10-08 13:36:04.040: I/Process(1354): Sending signal. PID: 1354 SIG: 9


正在回答

2 回答

.so文件加入了吗?

0 回复 有任何疑惑可以回复我~

 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.zhuce/com.example.zhuce.MainActivity}: java.lang.NullPointerException

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android-短信验证
  • 参与学习       37909    人
  • 解答问题       73    个

通过代码实践实现短信验证,打造最贴心的一站式服务平台

进入课程

老师,我做的这个短信发送有问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信