Questions tagged [inflate-exception]

(Android) This exception is thrown by an inflater on error conditions.

(Android) This exception is thrown by an inflater on error conditions.

Reference: http://developer.android.com/reference/android/view/InflateException.html

323 questions
4
votes
4 answers

ActionBarSherlock & ShareActionProvider cause InflateException

I'm a building an app that uses ActionBarSherlock and it's ShareActionProvider for generating an Intent to other apps. I created the item based on the sample code from the library's github page; at first, I worked flawlessly. However, a day after…
4
votes
4 answers

Error inflating class android.widget.listview

I've looked through a bunch of other people's problems and explanations, and nothing is working for me. The very first activity of my program, which is a ListActivity, is having trouble inflating its xml file. The LogCat output is: 08-01…
Jamie E
  • 100
  • 1
  • 7
3
votes
0 answers

Error inflating androidx.appcompat.widget.SearchView

We are getting crash reports in play store about an inflate exception with the androidx.appcompat.widget.SearchView, in the OnCreateView method where we inflate the layout this way. val binding = DataBindingUtil.inflate(inflater,…
Jai
  • 217
  • 1
  • 4
  • 15
3
votes
1 answer

Android Application crash on Android 13

Getting weird crash in Samsung android 13 devices, but this is working fine in other devices. Recently we are getting one crash in firebase crash analytics, below is the crash report . Application is targeting api level 33 and so far crash reported…
3
votes
0 answers

Error inflating class ImageView in Navigation Drawer Fragment

I'm getting Error in inflating class ImageView in Fabric Crashlytics: # OS Version: 7.0 # Device: Galaxy S6 # RAM Free: 35.1% # Disk Free: 44.8% #0. Crashed: main at android.app.ActivityThread.performLaunchActivity +…
3
votes
1 answer

Android WebView InflateException on android 7.0

I have WebView on my application and I got many same errors on android 7.0 from users while inflating WebView fragment. Error log: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class…
3
votes
1 answer

Binary XML file line #2: Error inflating class android.support.v7.widget.CardView in android<21 in android studio

following code is work well in android greater than 21 (lollipop), @Override public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v =…
Mohamad Seyedi
  • 359
  • 1
  • 3
  • 14
3
votes
0 answers

Suppressed: java.lang.ClassNotFoundException: android.view.x

Application working fine in debug build type but later I generated signed APK and tried to run app but got an error on signed APK. Here I share some other resource for more clarification. BuildType: release { minifyEnabled true …
Sagar Chavda
  • 125
  • 1
  • 2
  • 12
3
votes
2 answers

Instant APP InflateException

When running my Instant App, I get the following inflateException: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xfzj.instantappdemo/com.xfzj.instantappdemo.feature.MainActivity}: android.view.InflateException: Binary XML…
3
votes
5 answers

Android: Binary XML file line Error inflating class

I've been trying to load a list of records from a database to a screen but there seems to be a problem when the app gets the data and tries to display it on the screen. I read that sometimes this type of error is thrown when displaying large images…
Miguel Lasa
  • 470
  • 1
  • 7
  • 19
3
votes
0 answers

Binary XML file line : Error inflating class

I am getting Error inflating class error in Android 6.0 emulators when I am trying to add foreground drawable. My logcat : Process: com.yasinkacmaz.myapp, PID: 12789 android.view.InflateException: Binary XML file line #14: Binary XML file…
Yasin Kaçmaz
  • 6,573
  • 5
  • 40
  • 58
3
votes
2 answers

Binary XML file line #45: Error inflating class ImageButton onload but only on some devices

I am getting this error: Binary XML file line #45: Error inflating class ImageButton I just dont understand why. It only happens on some devices, not all. On the same emulator its working with api 21, but when using api 19 it just crashes. I tried…
Jason
  • 1,658
  • 3
  • 20
  • 51
3
votes
2 answers

Android MapBox inflating error. Didn't find class MapView

When I launch android app with MapBox library I get exception: "android.view.InflateException: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView" Field "cause" contains this…
BadEugene
  • 43
  • 1
  • 9
3
votes
0 answers

Google Maps Issue for ICS devices; Binary XML file line #8: Error inflating class fragment

Crashlytics is reporting a common crash that I have not been able to successfully diagnose and correct. It looks like it may be an issue with google Maps, but I am not certain of why. This only occurs on 4.1.2 (69%) and 4.4.2 (31%) devices. I feel…
3
votes
4 answers

Trying to inflate different views for each row of a list view inside getting this (android.view.InflateException: Binary XML..)

(I can provide any other info if you want) I am getting this error when I try to set separate layout for each row in a ListView. I have a custom adapter extended from the BaseAdapter which implements View.OnClickListener() I will only give the…
Nyob
  • 416
  • 1
  • 3
  • 14
1 2
3
21 22