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
0
votes
1 answer

When I release the app with ofuscation dosen´t work properly Error inflating class button. Only with ofuscation

My application is very simple as you see in codes, I have few dependencies. Its only throw the Exception if I use obfuscation by making ture minifyEneble. Sorry be my english. My gradle here: android { compileSdkVersion 25 defaultConfig { …
0
votes
1 answer

android.view.InflateException: Binary XML file line #22: Binary XML file line #22: Error inflating class androidx.fragment.app.FragmentContainerView

I have a very frustrating error. The application was running just fine till yesterday, I closed android studio then when I opened it today it showed this error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.myapplication11, PID:…
0
votes
1 answer

InflateException, Fragment$InstantiationException for Fragments in Android Studio

I have created two demo Fragment classes and corresponding fragment layout using Right Click on Java project folder -> New -> Fragment and kept everything generated by IDE as it is. My files are…
Payel Senapati
  • 1,134
  • 1
  • 11
  • 27
0
votes
1 answer

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

I have tried multiple solutions out there, if I remove code from the line 107 to 188 everything works ok and there is no error in inflation, but I am unable to pinpoint bug in that specific code. Everything works ok in Android 8+ without removing…
Zulqurnain Jutt
  • 1,077
  • 1
  • 9
  • 21
0
votes
1 answer

android.view.InflateException: Error inflating class

I'm a beginner in android and i want to program a calculator (press here to see the project), but i get this error. Can someone help me?
Kevin
  • 11
0
votes
1 answer

kotlin:android.view.InflateException: Binary XML file line #24

I want to add navigation drawer in my activity that has a recycler view If you need other xml file codes, tell me to put it here. MainPageActivity.kt class MainPageActivity : AppCompatActivity(),…
Edy
  • 35
  • 1
  • 5
0
votes
2 answers

Custom component inflates in App but not in Widget

Background I created a custom component to draw on top of an image. At this stage I am merely extending the view. My primary intention was to create a Widget but could not get it to work. I tried to load the same component in a main Activity, it…
MonoThreaded
  • 11,429
  • 12
  • 71
  • 102
0
votes
1 answer

Error inflating class com.google.android.gms.ads.AdView in android studio

I am trying to add an admod to a fragment. After adding the dependency in build.gradle, I still cannot inflating the admod class and display the admod on my XML. Any idea of what I have done wrong? Am I missing any setting? Error…
Howard Lau
  • 163
  • 1
  • 11
0
votes
1 answer

Fatal Exception: android.view.InflateException Caused by java.lang.ClassNotFoundException

On a release build with proguard enabled, there is an exception that I didn't really get why it's happening, it's not also reproducable locally. The configurations should be properly done, as I've put them at the bottom of the question after the…
Furkan Yurdakul
  • 2,801
  • 1
  • 15
  • 37
0
votes
0 answers

Error inflating class androidx.constraintlayout.widget.ConstraintLayoutaintLayout with correct androidx implementations and versions

I was trying to implement a RecyclerView to populate with posts saved in a Firebase Database. When I run my application I get the error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.price, PID: 21096 …
0
votes
1 answer

Unable to Load Images on Android device (v. 4.4.4) from Android Studio Project due to an Inflate Exception

I am faced with the following error which is displayed in Logcat: 01-17 10:31:45.981 317-317/com.example.socialskillstraining E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.socialskillstraining, PID: 317 …
0
votes
1 answer

How come I get so many InflateException crashes recently from Samsung devices running Android 10?

Background For some reason on one of my apps, I get relatively a lot of crashes recently of "android.view.InflateException" . I think it has started over the last version or two. The problem According to both the Play Console and Crashlytics, for…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
0
votes
1 answer

InflateException on setContentView(R.layout.activity_login);

I tried to open my app on my samsung android 6.0; but it gives me this exception: 11-15 17:29:40.751 11631-11631/? E/Zygote: v2 11-15 17:29:40.751 11631-11631/? E/Zygote: accessInfo : 0 11-15 17:29:41.251 11631-11631/com.example.meetgreet…
0
votes
2 answers

Error inflating class androidx.constraintlayout.widget.ConstraintLayout in Android 4

My app crashed when inflate the layout in Android 4.4, the error is java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.app/com.my.app.ui.splashscreen.SplashScreen}: android.view.InflateException: Binary XML file line #2:…
0
votes
0 answers

Why does App Bundle Cause an InflateException?

I have published my .aab(Android App bundle) file on Google Play. When I test .aab on my VIVO Android 7.0 device, it show InflateException. finaly I solved it by deleting xhdpi/dimens.xml, could anyone tell me why this…
thecr0w
  • 2,148
  • 4
  • 33
  • 59