gpt4 book ai didi

java - 由 : java. lang.NullPointerException 引起:lock == null

转载 作者:行者123 更新时间:2023-11-29 03:18:41 25 4
gpt4 key购买 nike

我通过 Android Studio 返回错误...我将这个用于 eclipse 项目的项目导入到 android studio.. Log Cat:

7-26 13:51:07.008    1761-1761/...tutorial E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: ....tutorial, PID: 1761
java.lang.RuntimeException: Unable to start activity ComponentInfo{...tutorial/...tutorial.SimpleListActivity}: java.lang.NullPointerException: lock == null
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
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:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException: lock == null
at java.io.Reader.<init>(Reader.java:64)

有什么想法吗?谢谢...

最佳答案

您正在使用 null 参数调用 InputStreamReader(或某些此类函数)。

    is = new InputStreamReader(null);    // bang

关于java - 由 : java. lang.NullPointerException 引起:lock == null,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24974586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com