qq_40742755
未来梦。
采纳率100%
2019-08-20 21:09 阅读 1.3k

java.lang。RuntimeException:无法启动活动.

两个Activity Intent跳转
图片说明
接收方:
图片说明
很普通的跳转,打包成APP在有些手机上运行没问题,某些机子有问题。报错如下:
FATAL EXCEPTION: main Process: com.szst.yzph, PID: 13566 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.szst.yzph/com.szst.koreacosmetic.Activity.Tieba.TiebaPublicationActivity}: java.lang.NullPointerException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2955) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3033) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1734) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:192) at android.app.ActivityThread.main(ActivityThread.java:6809) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:825) Caused by: java.lang.NullPointerException at android.graphics.Bitmap.compress(Bitmap.java:1240) at com.szst.utility.BitmapUtil44Do.saveMyBitmap(BitmapUtil44Do.java:92) at com.szst.utility.AddDefautImg.SaveCarmerImg(AddDefautImg.java:28) at com.szst.koreacosmetic.Activity.Tieba.TiebaPublicationActivity.onCreate(Native Method) at android.app.Activity.performCreate(Activity.java:7113) at android.app.Activity.performCreate(Activity.java:7104) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2908) ... 9 more

好像说是空指针,跳这个页面就崩溃。manifest也注册了,求各位大佬帮忙看看。

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    weimingjue 王能 2019-08-21 09:05

    你的TiebaPublicationActivity.onCreate(行数没了?)里面操作图片的地方出错了。
    我看你的ThisActivity最像null,你debug一下

    点赞 1 评论 复制链接分享

相关推荐