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
1
vote
4 answers

android inflate exception

I want to create a layout for my android application using inheritance i.e. every screen will have the same background and header. The layout with that background and header is specified like this:
JasperTack
  • 4,337
  • 5
  • 27
  • 39
1
vote
2 answers

Runtime error: ClassNotFound exception

I've been having this runtime error for almost a week and can't find the solution (I'm a new android programmer). Please help me! The log is at the end of this message. I know there are some similar questions to mine but I couldn't find a solution…
Nativ
  • 3,092
  • 6
  • 38
  • 69
1
vote
1 answer

InflateException for admob's adview after using proguard

I'm new to admob.I use Android froyo and I added Adview to my main.xml as follow:
user912806
  • 21
  • 2
0
votes
2 answers

android.view.InflateException: Binary XML file line #15: Error inflating class

i have implemented an new ImageLoaderView that extends view, with a code that works if i set the xml programatically. But as this seems to be difficult I am trying to make it work for an xml in my res layout folder, but i am getting an error. Below…
ghostrider
  • 5,131
  • 14
  • 72
  • 120
0
votes
0 answers

Caused by android.view.InflateException Binary XML file line #9: Binary XML file line #9: Error inflating class android.widget.RelativeLayout

This issue is occuring randomly and I am an intermediate in developing native android applications. This issue ossurs 1% of user engagements within the app. Randomly I can view crash reports of this in firebase crashlytics as follows Fatal…
0
votes
0 answers

Android Navigation : java.lang.IllegalStateException - Could not find Navigator with name "navigation"

I am using android navigation on my project . On Some Xiaomi devices ,app crashes on startup. I could not find problem. code;
0
votes
0 answers

Fatal Exception: error inflating class com.google.android.material.floatingactionbutton.FloatingActionButton

Running on older versions but still widely used, such as version 5.1, there is a problem when starting the application, causing it to stop, not being able to inflate the button around the play/pause icon. I don't know if it has to do with the theme…
0
votes
1 answer

tag in XML and Databinding gives inflate exception

I am working on an existing project which uses DrawerLayout and a custom fragment for side navigation, but when I use data binding it gives inflate exception in XML file at tag. Below is my code. activity_home.xml
0
votes
1 answer

Error inflating Binary XML file line #53: Error inflating class com.google.android.material.textview.MaterialTextView

Running app on Android version 7.1.1 device. Was working perfectly then suddenly I got this inflation exception error. XML file:
0
votes
1 answer

Caused by java.lang.UnsupportedOperationException Binary XML file line #20: You must supply a layout_height attribute

I got crashAnalytics error : In LoginPage xml file, I am using ImageView and give layout_height = "dimens/dp200" its value is 200dp and I also created 4 more dimens file (mdpi/hdpi/xdpi/xxdpi), put value of "dimens/dp200" in each file and default…
0
votes
0 answers

InflateException after changing textColor attribute in ExpandableListView

I have a simple Kotlin class WarningFragment in which I set an adapter for ExpandableListView and pass list headers and details of every list header inside. For the record, here's the code of the class: class WarningFragment : Fragment() { …
0
votes
1 answer

Handle android.view.InflateException: Error inflating class fragment

I am trying to build an app with a single activity that hosts multiple fragments. I am also using Nav Graph and Data Binding. I am getting this error which I can't find a way around it even after reviewing similar questions on StackOverflow. All I…
Tonnie
  • 4,865
  • 3
  • 34
  • 50
0
votes
2 answers

android.view.InflateException: Binary XML file line #15: Binary XML file line #19: Error inflating class fragment

I have Error while launching app. My code has no error still I am getting this Error. Help me how to fix it. android.view.InflateException: Binary XML file line #15: Binary XML file line #19: Error inflating class fragment
0
votes
1 answer

How to solve InflateException at custom view

My question is about Android/Java. My main.xml:
Button
  • 19
  • 5
0
votes
3 answers

Crashes with android.view.InflateException: Binary XML file line #49: Binary XML file line #49: Error inflating class ImageView

I want to make a tic tac toe game in android with java. I have two activity in my project. when I run my project I will receive a message ( app is stopped ) and the app is closed! I test my app in Virtual device and Real device, I don't have any…