java.lang.RuntimeException

Unable to start activity ComponentInfo{com.ciputraresidence.ciapp.ourproject/com.ciputraresidence.ciapp.ourproject.HomeActivity}: android.view.InflateException: Binary XML file line #33: Error inflating class android.support.design.widget.CollapsingToolbarLayout

Solutions on the web53061

  • Unable to start activity ComponentInfo{com.ciputraresidence.ciapp.ourproject/com.ciputraresidence.ciapp.ourproject.HomeActivity}: android.view.InflateException: Binary XML file line #33: Error inflating class android.support.design.widget.CollapsingToolbarLayout
  • Unable to start activity ComponentInfo{}: android.view.InflateException: Binary XML file line #21: Error inflating class android.support.design.widget.CollapsingToolbarLayout
  • Unable to start activity ComponentInfo{xxxx}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.CollapsingToolbarLayout
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ciputraresidence.ciapp.ourproject/com.ciputraresidence.ciapp.ourproject.HomeActivity}: android.view.InflateException: Binary XML file line #33: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) at android.app.ActivityThread.access$800(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5021) 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:827) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:643) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #33: Error inflating class android.support.design.widget.CollapsingToolbarLayout at android.view.LayoutInflater.createView(LayoutInflater.java:620) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) at android.view.LayoutInflater.rInflate(LayoutInflater.java:758) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:397) at android.view.LayoutInflater.inflate(LayoutInflater.java:353) at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) at com.ciputraresidence.ciapp.ourproject.HomeActivity.onCreate(HomeActivity.java:44) at android.app.Activity.performCreate(Activity.java:5318) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at android.view.LayoutInflater.createView(LayoutInflater.java:594) ... 25 more Caused by: java.lang.NoSuchMethodError: android.support.v4.graphics.drawable.DrawableCompat.setLayoutDirection at android.support.design.widget.CollapsingToolbarLayout.setStatusBarScrim(CollapsingToolbarLayout.java:663) at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:197) at android.support.design.widget.CollapsingToolbarLayout.<init>(CollapsingToolbarLayout.java:132) ... 28 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 6 months ago
    Unknown user
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 11 months ago
    1 more bugmates