Failed to determine line number in logcat Android Studio

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)
+4
source share
2 answers

( ), XML- . NullPointerException - onClick (** ) **, , , , onclick funtion , XML. , onclick , , XML

:

, , .

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="string"
          android:sharedUserId="string"
          android:sharedUserLabel="string resource" 
          android:versionCode="integer"
          android:versionName="string"
          android:installLocation=["auto" | "internalOnly" | "preferExternal"] >
    . . .
</manifest> 

, . - . Reminders$13

enter image description here

Java Android. . ('A' 'Z'), ('_'). , . , - ( ). , , Google, com.google. com.example .

developer.android.com

+5

, , , , ,

+2

Source: https://habr.com/ru/post/1664894/


All Articles