Home > other >  Write the first line of code, Android to combat cool when the weather out some bugs, print log is as
Write the first line of code, Android to combat cool when the weather out some bugs, print log is as

Time:09-20

03-01 00:16:15. 765, 17880-17880/com. Example. Lab. Android. The nuc. Coolweather E/AndroidRuntime: FATAL EXCEPTION: the main
Process: com. Example. Lab. Android. Nuc. Coolweather, PID: 17880
Java. Lang. RuntimeException: Unable to start the activity ComponentInfo {com. Example. Lab. Android. Nuc. Coolweather/com. The example. The lab. The android. The nuc. Coolweather. Activity. WeatherActivity} : Java. Lang. NullPointerException: Attempt to read the from field 'Java. Lang. String com. Example. Lab. Android. The nuc. Coolweather. Gson. Basic. The cityName' on a null object reference
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2793)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2864)
. An android app. ActivityThread. - wrap12 (ActivityThread. Java)
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1567)
An android. OS. Handler. DispatchMessage (Handler. Java: 105)
. An android OS. Stars. Loop (156). Which Java:
. An android app. ActivityThread. Main (6523) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 942)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 832)
Under Caused by: Java. Lang. NullPointerException: Attempt to read the from field 'Java. Lang. String com. Example. Lab. Android. The nuc. Coolweather. Gson. Basic. The cityName' on a null object reference
At com. Example. Lab. Android. Nuc. Coolweather. Activity. WeatherActivity. ShowWeatherInfo (WeatherActivity. Java: 126)
At com. Example. Lab. Android. Nuc. Coolweather. Activity. WeatherActivity. OnCreate (WeatherActivity. Java: 74)
. An android app. Activity. PerformCreate (6915) Activity. Java:
. An android app. Instrumentation. CallActivityOnCreate (1123) Instrumentation. Java:
. An android app. ActivityThread. PerformLaunchActivity (ActivityThread. Java: 2746)
. An android app. ActivityThread. HandleLaunchActivity (ActivityThread. Java: 2864)
. An android app. ActivityThread. - wrap12 (ActivityThread. Java)
An android. App. ActivityThread $H.h andleMessage (ActivityThread. Java: 1567)
An android. OS. Handler. DispatchMessage (Handler. Java: 105)
. An android OS. Stars. Loop (156). Which Java:
. An android app. ActivityThread. Main (6523) ActivityThread. Java:
The at Java. Lang. Reflect. Method. Invoke (Native Method)
At com. Android. Internal. OS. $MethodAndArgsCaller ZygoteInit. Run (ZygoteInit. Java: 942)
At com. Android. Internal. OS. ZygoteInit. Main (ZygoteInit. Java: 832)

CodePudding user response:

Adding deserialized to weather class notes
  • Related