android-ConstraintLayoutExamples icon indicating copy to clipboard operation
android-ConstraintLayoutExamples copied to clipboard

App crashes when clicking the item "CoordinatorLayout Example (3/3)"

Open rayworks opened this issue 8 years ago • 0 comments

E/AndroidRuntime: FATAL EXCEPTION: main
  Process: com.google.androidstudio.motionlayoutexample, PID: 13932
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.androidstudio.motionlayoutexample/com.google.androidstudio.motionlayoutexample.DemoActivity}: java.lang.IllegalStateException: findViewById(R.id.motionLayout) must not be null
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
      at android.app.ActivityThread.-wrap11(Unknown Source:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
      at android.os.Handler.dispatchMessage(Handler.java:106)
      at android.os.Looper.loop(Looper.java:164)
      at android.app.ActivityThread.main(ActivityThread.java:6501)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
   Caused by: java.lang.IllegalStateException: findViewById(R.id.motionLayout) must not be null
      at com.google.androidstudio.motionlayoutexample.DemoActivity.onCreate(DemoActivity.kt:35)
      at android.app.Activity.performCreate(Activity.java:7036)
      at android.app.Activity.performCreate(Activity.java:7027)
      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)

rayworks avatar Sep 18 '18 15:09 rayworks