java.lang.RuntimeException

Unable to startactivityComponentInfo{com.acrcloud.rec.demo/com.acrcloud.rec.demo.SplashScreen}: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView

Samebug tips1

Your xml configuration is invalid. Check it with an xml validator.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web51639

  • Unable to startactivityComponentInfo{com.acrcloud.rec.demo/com.acrcloud.rec.demo.SplashScreen}: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView
  • via Stack Overflow by Unknown author, 1 year ago
    Unable to start activity ComponentInfo{com.mkyong.android/com.mkyong.android.MyAndroidAppActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView
  • Unable to start activity ComponentInfo{com.example.tarun.calculator/com.example.tarun.calculator.MainActivity}: android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class android.widget.ImageView
  • Stack trace

    • java.lang.RuntimeException: Unable to startactivityComponentInfo{com.acrcloud.rec.demo/com.acrcloud.rec.demo.SplashScreen}: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class android.widget.ImageView at android.view.LayoutInflater.createView(LayoutInflater.java:633) at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:55) at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.inflate(LayoutInflater.java:504) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.view.LayoutInflater.inflate(LayoutInflater.java:365) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:377) at android.app.Activity.setContentView(Activity.java:2144) at com.acrcloud.rec.demo.SplashScreen.onCreate(SplashScreen.java:12) at android.app.Activity.performCreate(Activity.java:5933) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method)

    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

    16 times, 4 months ago
    Unknown user
    Once, 11 months ago
    6 times, 1 year ago
    2 times, 1 year ago
    Unknown user
    Once, 1 year ago
    40 more bugmates