0

当我在ANDROID STUDIO中尝试Simple Android OCR (https://github.com/GautamGupta/Simple-Android-OCR) 时,它给了我一个运行时错误,如图所示。谁能帮我这个?

![尝试运行时发生运行时错误][2]

06-03 12:44:31.904  17051-17051/com.startup.vrvijay.liccamera E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.startup.vrvijay.liccamera, PID: 17051
android.util.SuperNotCalledException: Activity {com.startup.vrvijay.liccamera/com.startup.vrvijay.liccamera.MainActivity} did not call through to super.onCreate()
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2333)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2429)
        at android.app.ActivityThread.access$800(ActivityThread.java:151)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)
        at android.os.Handler.dispatchMessage(Handler.java:110)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:5333)
        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:828)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:644)
        at dalvik.system.NativeStart.main(Native Method)
4

1 回答 1

2

您忘记放置:

super.onCreate(savedInstanceState);

就在你之后

protected void onCreate(Bundle savedInstanceState) {
于 2015-06-04T13:48:59.997 回答