question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Caused by: android.view.InflateException:

See original GitHub issue
Caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class com.github.piasy.biv.view.BigImageView
         at android.view.LayoutInflater.inflate(LayoutInflater.java:543)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
        at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
   atandroid.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:292)

this is my code

 <com.github.piasy.biv.view.BigImageView
            android:id="@+id/photo_view"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:failureImage="@drawable/default_entry_pic"
            app:failureImageInitScaleType="center"
            app:optimizeDisplay="false" />

@BindView(R.id.photo_view)
BigImageView mBigImage;
@Override
protected void onCreate(Bundle savedInstanceState) {
            BigImageViewer.initialize(GlideImageLoader.with(MyApplication.getApplication()));
            setContentview(R.layout.activiyt_main);
            mBigImage.showImage(Uri.parse(url));
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

12reactions
potter777commented, Oct 13, 2018

I had same issue. I solved it, Initializing BigImage before inflate the view (a fragment in my case).

1reaction
ghostcommented, Aug 15, 2017

In your activity write this line to initialize the Viewer:

BigImageViewer.initialize(FrescoImageLoader.with(getApplicationContext()));

Read more comments on GitHub >

github_iconTop Results From Across the Web

Binary XML file: Error inflating class fragment - Stack Overflow
NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #25: Error inflating class fragment at ...
Read more >
How to fix "android.view.InflateException: Binary XML file line ...
Caused by: android.view.InflateException: Binary XML file line # 15 in com.example.mycamera:layout/activity_main: Error inflating class ...
Read more >
Binary XML file line #28: Error inflating class <unknown>
14 more W/WindowManager( 197): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class org.mozilla.gecko.
Read more >
Caused by: android.view.InflateException: Binary XML file line ...
As the title,when i use mapview in fragment not in activity,it caused!the difference is it was load by LayoutInflater just like @Nullable @Override...
Read more >
Error inflating class androidx.appcompat.widget.Toolbar
Android.Views.InflateException Binary XML file line #1 in layout/toolbar: Error inflating class androidx.appcompat.widget.Toolbar.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found