Bosses genuflect is begged!!!!!!
Process: com. Example. R, PID: 4313
Java. Lang. RuntimeException: Unable to start the activity ComponentInfo {com. Example. R/com. Example, r.m. Ainpages LocMapActivity} : Java. Lang. NullPointerException: Attempt to invoke virtual method 'Java. Lang. String. Android OS. Bundle. Get String (Java. Lang. String)' on a null object reference
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2327)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2392)
. An android app. ActivityThread. Access the $800 (153) ActivityThread. Java:
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1305)
An android. OS. Handler. DispatchMessage (Handler. Java: 102)
. An android OS. Stars. Loop (135). Which Java:
. An android app. ActivityThread. Main (5293) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
The at Java. Lang. Reflect. Method. Invoke (372) Method. The Java:
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 903)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 698)
Under Caused by: Java. Lang. NullPointerException: Attempt to invoke virtual method 'Java. Lang. String. Android OS. Bundle. Get String (Java. Lang. String)' on a null object reference
At com.baidu.mapsdkplatform.com API. Util. PermissionCheck. Init (Unknown Source)
At com.baidu.mapsdkplatform.com API. A.c (Unknown Source)
At com.baidu.mapsdkplatform.com API. C.a. (Unknown Source)
At com. Baidu. Mapapi. SDKInitializer. The initialize (Unknown Source)
At com. Example. R.m ainpages. LocMapActivity. OnCreate (46) LocMapActivity. Java:
. An android app. Activity. PerformCreate (5990) Activity. Java:
. An android app. Instrumentation. CallActivityOnCreate (1106) Instrumentation. Java:
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2280)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2392)
. An android app. ActivityThread. Access the $800 (153) ActivityThread. Java:
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1305)
An android. OS. Handler. DispatchMessage (Handler. Java: 102)
. An android OS. Stars. Loop (135). Which Java:
. An android app. ActivityThread. Main (5293) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
The at Java. Lang. Reflect. Method. Invoke (372) Method. The Java:
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 903)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 698)
CodePudding user response:
To enter the code to see which object to nullCodePudding user response:
DBQ rookie don't know how to find theLog in only one ats com. Example. R.m ainpages. LocMapActivity. OnCreate (LocMapActivity. Java: 46) points in
Corresponding is that a SDKInitializer. The initialize (getApplicationContext ());
CodePudding user response:
You baidu Android Studio how to Debug debugging code rookie? From this stage come calm calm calmCodePudding user response:
Have a piece of code in this LocMapActivity called the null pointer exception so would go wrong a good debugging to calm down to find problemsCodePudding user response:
Well I don't worry thank you!CodePudding user response:
The repetitive again:NullPointerException: null pointer exception, for the caller to null, has pointed out the Bundle back. Get string is null, explain your getBundle is null, no judgment can directly get string, get string in LocMapActivity search to find the corresponding code changes
New blog still watch it again: https://blog.csdn.net/weimingjue/article/details/87921494,
Yung7086 reply is not very accurate, so deleted
CodePudding user response:
The Bundle is null null pointerCodePudding user response: