SHARE
TWEET

Untitled

a guest Dec 29th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. E/AndroidRuntime: FATAL EXCEPTION: main
  2.     Process: com.londonappbrewery.climapm, PID: 16532
  3.     java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.londonappbrewery.climapm/com.londonappbrewery.climapm.WeatherController}: java.lang.IllegalStateException: System services not available to Activities before onCreate()
  4.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2843)
  5.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)
  6.         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
  7.         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
  8.         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
  9.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)
  10.         at android.os.Handler.dispatchMessage(Handler.java:106)
  11.         at android.os.Looper.loop(Looper.java:193)
  12.         at android.app.ActivityThread.main(ActivityThread.java:6669)
  13.         at java.lang.reflect.Method.invoke(Native Method)
  14.         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  15.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
  16.      Caused by: java.lang.IllegalStateException: System services not available to Activities before onCreate()
  17.         at android.app.Activity.getSystemService(Activity.java:6014)
  18.         at com.londonappbrewery.climapm.WeatherController.<init>(WeatherController.java:49)
  19.         at java.lang.Class.newInstance(Native Method)
  20.         at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:69)
  21.         at android.support.v4.app.CoreComponentFactory.instantiateActivity(CoreComponentFactory.java:43)
  22.         at android.app.Instrumentation.newActivity(Instrumentation.java:1215)
  23.         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2831)
  24.         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048) 
  25.         at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 
  26.         at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
  27.         at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
  28.         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808) 
  29.         at android.os.Handler.dispatchMessage(Handler.java:106) 
  30.         at android.os.Looper.loop(Looper.java:193) 
  31.         at android.app.ActivityThread.main(ActivityThread.java:6669) 
  32.         at java.lang.reflect.Method.invoke(Native Method) 
  33.         at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
  34.         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) 
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top