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
123
votes
4 answers

NameNotFoundException webview

I am getting errors from Crashlytics that indicates that some devices are missing com.google.android.webview. How is that even possible? java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.app/com.myapp.ReaderActivity}:…
88
votes
7 answers

InflateException with FloatingActionButton from Official Design Library

I am getting a bug using the official FloatingActionButton from Google's support design library. Here is my LogCat. android.view.InflateException: Binary XML file line #34: Error inflating class android.support.design.widget.FloatingActionButton at…
59
votes
2 answers

NPE while inflating layout (Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference)

I keep getting a java.lang.NullPointerException when I try to use ScrollView in an activity. The weird thing is that I've used the exact same Scrollview setup in other activities. And all of a sudden I'm getting errors. I've tried cleaning the…
41
votes
18 answers

InflateException: Binary XML file line #8: Error inflating class ImageView

I know there are other questions on SO asking the same thing. I have already looked at most of them. Most answers call about memory errors. I can't see how an ImageView which loads just a small icon (24x24 pixels) can make something like this. But…
Mes
  • 1,671
  • 3
  • 20
  • 36
41
votes
18 answers

Error inflating class ImageView

I've been getting InflateException/ClassNotFoundException error intermittently. I've seen similar errors before in SO but they were caused by spelling errors. I spelled 'ImageView' correctly so I don't know what's causing the error. The code where…
dannyroa
  • 5,501
  • 6
  • 41
  • 59
28
votes
2 answers

Inflate Bottom Navigation View menu programmatically

Bottom Navigation View has been added to version 25 of the Design Support Library. Tried and it's much easier to use now. But I am facing problem implementing it as per my app requirements. I want to inflate menu resource dynamically and change…
Priya Mall
  • 581
  • 1
  • 10
  • 22
23
votes
10 answers

Error inflating class CollapsingToolbarLayout

My CollapsingToolbarLayout crashes because of Error inflating class android.support.design.widget.CollapsingToolbarLayout. I updated the android studio last weekend. Before the updated, it works fine. After I updated it, it crashed. However, I tried…
18
votes
4 answers

Error inflating class android.support.v4.view.ViewPager

I've been trying to create a Pager for my application that runs on I wrote my code according to this blog post. XML for Pager activity:
thepoosh
  • 12,497
  • 15
  • 73
  • 132
13
votes
2 answers

Error inflating class EditText on creating TextInputLayout on Android 4.4.2:

I using the TextInputLayout UI mechanism in my login page of the application, everything works great except for device that run the 4.4.2 android version on this devices I have an exception. This is my layout:
11
votes
3 answers

Resources Not Found Exception (Unable to find resource ID) even though resources exist in drawable folder

I'm getting this crash report in Crashlytics: Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app/com.example.app.activities.TabActivity}: android.view.InflateException: Binary XML file line #27:…
10
votes
7 answers

Fragment inflated in Fragment Dialog throws error "Fragment did not create a view"

The user clicks a button which brings up a fragment dialog that inflates a fragment like this: AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); View view = getActivity().getLayoutInflater().inflate( …
8
votes
4 answers

Inflate Exception in Google Map Fragment in ViewPager with TabLayout

I made an app in which I have displayed a Google Map with GPS location marker on my location. This map is on the 1st tab, and I also have two other tabs as shown in picture below Now I am facing an issue i.e. when I move from tab 1 to tab 2 and…
8
votes
6 answers

Error inflating class ImageButton

I have an app which has fragment and image button on that. The problem is it's working on and above 5.0 but not below 5.0. The min sdk version is 17. Not getting what's wrong here. I am getting 2 exceptions. One is RuntimeException for image…
8
votes
5 answers

Error inflating class Button in Android

I have an application with min sdk 16 up to 23. I want to use Material design as much as possible. It also has to be fullscreen app. AppCompat support library is included. Now I have Logon activity with some buttons:
7
votes
0 answers

How to prevent Error inflating class com.google.android.exoplayer2.ui.PlayerView?

Exoplayer2 is working fine in devices like Samsung, Vivo, Xiaomi, etc on both release and debug build. But when I have released my app on the play store, it is throwing errors on some devices like nexus, pixel phones. Crashlytics showing this error:…
1
2 3
21 22