java.lang.NullPointerException:尝试调用虚拟方法'void com.isseiaoki.simplecropview.CropImageView.setCropMode'

时间:2019-12-28 03:03:36

标签: java android

E / Android运行时:致命异常:主要     流程:com.milesstudio.photoeditor,PID:11914     java.lang.RuntimeException:无法启动活动ComponentInfo {com.milesstudio.photoeditor / com.milesstudio.photoeditor.EditorCrop_Activity}:java.lang.NullPointerException:尝试调用虚拟方法'void com.isseiaoki.simplecropview.CropImageView.setCropMode( com.isseiaoki.simplecropview.CropImageView $ CropMode)”上的空对象引用         在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)         在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2682)         在android.app.ActivityThread.-wrap11(ActivityThread.java)         在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1512)         在android.os.Handler.dispatchMessage(Handler.java:111)         在android.os.Looper.loop(Looper.java:207)         在android.app.ActivityThread.main(ActivityThread.java:5811)         在java.lang.reflect.Method.invoke(本机方法)         在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:791)         在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:681)      原因:java.lang.NullPointerException:尝试在空对象引用上调用虚拟方法'void com.isseiaoki.simplecropview.CropImageView.setCropMode(com.isseiaoki.simplecropview.CropImageView $ CropMode)'         在com.milesstudio.photoeditor.EditorCrop_Activity.onCreate(EditorCrop_Activity.java:39)         在android.app.Activity.performCreate(Activity.java:6317)         在android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)         在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2543)         在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2682)         在android.app.ActivityThread.-wrap11(ActivityThread.java)         在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1512)         在android.os.Handler.dispatchMessage(Handler.java:111)         在android.os.Looper.loop(Looper.java:207)         在android.app.ActivityThread.main(ActivityThread.java:5811)         在java.lang.reflect.Method.invoke(本机方法)         在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:791)         在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:681) I / Process:正在发送信号。 PID:11914 SIG:9 进程11914终止。

0 个答案:

没有答案