Android Studio 2.2.3
Android Studio cannot determine the line number in logcat. Is there any way to solve this? It shows an unknown source instead of line No.
LOGCAT is added only to shake, indicating what the problem is. Do not indicate why NULL POINT EXCEPTION occurs ...
Please ignore the error (I know why it occurs). I added a way out to show what is the problem.
Android Studio shows an unknown source instead of the error line number.
Logcat:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: user.com.hlthee, PID: 1107
java.lang.NullPointerException
at user.com.hlthee.Reminders$13.onClick(**Unknown Source**)
at android.support.v7.app.AlertController$ButtonHandler.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
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:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
source
share