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

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

I am trying to use ToolBar (Lollipop Widget) using android.support.v7 library. But while running an app getting an error. android.view.InflateException: Binary XML file line #7: Error inflating class Toolbar My main goal is to have a…
user3371398
  • 459
  • 1
  • 6
  • 19
3
votes
0 answers

InflateException - Caused by: java.lang.reflect.Constructor.constructNative(Native Method)

I've seen a couple crashes for my app, and I'm having trouble pinpointing what's going wrong. I'm not having any luck reproducing even with video of what my user was doing at the time of the crash. It doesn't seem to be an "every time" crash. Can…
loeschg
  • 29,961
  • 26
  • 97
  • 150
3
votes
1 answer

Runtime Exception,view.InflateException,reflection.InvocationTargetException and OutOfMemoryError

I'm developing my first game for android.I've been running and testing my codes then and there in my android phone(Samsung Galaxy S2).In the finishing stages of my game,i added google admob services.Once it was added my game began to slow down.Game…
3
votes
3 answers

InflateException and ClassNotFoundException causing the app to crash

I'm creating an app where when the user selects a check the second activity is called. However, when the second activity is called my app crashes and the log cat shows an error on my paycheckactivity oncreate method. First Activity public class…
2
votes
3 answers

Fatal Exception in Android Studio: Error inflating class ConstraintLayout

I'm getting the same error and cant seem to understand where it comes from. tried messing with the constraints but im keep coming back to this specific problem. Error: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.rapp, PID:…
2
votes
1 answer

How to fix "Error inflating class android.support.v4.widget.DrawerLayout"

While deploying app to phone, the app keeps on crashing with a message that app has stopped. I have already tried looking for an answer on stack overflow but nothing resolves my problem. I cleaned my project, Invalidate and restart, change Api from…
Nabeel Ahmed
  • 31
  • 1
  • 4
2
votes
0 answers

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

While running on Android version 8.1.0 it is ok, but in android version 6.0.1 it throws this exception. My code is
2
votes
3 answers

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

I'm getting this error when I try to make an intent to a new AppCompatActivity but only in older Android APIs like 16, 22 or 23. In the new ones like API 26, it works correctly. This is the log: android.view.InflateException: Binary XML file line…
2
votes
2 answers

Can't inflate RecycleView

I'm added the RecycleView to my XML like this: My dependencies in build.gradle are…
0x29a
  • 733
  • 1
  • 7
  • 23
2
votes
1 answer

Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #63: Error inflating class

Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #63: Error inflating class < unknown > Let's start with the problem: The app works fine on android 8.0 one my oneplus but doesn't on my android 5.0 J5…
PixelHamster
  • 25
  • 1
  • 7
2
votes
1 answer

Error inflating XML class - Resource is not a Drawable (color or path)

Why when I run my project I get this error? I've been searching for this issue but I didn't find any solution for it Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #0: Error inflating class…
Comycos
  • 37
  • 1
  • 8
2
votes
2 answers

Android.view.InflateException: Binary XML file line #25: Error inflating class ImageButton, Resource NotFoundException, XmlPullParserException

In API: 19 Iam facing this Inflate Exception but Iam using AppCompatDrawableManager which supports as vector drawables in API:19 three Exceptions 1. Error in Inflate Image button 2. Resources$NotFoundException File res/drawable/bckg_icon.xml from…
2
votes
1 answer

PopUp Menu Inflate Exception in Recycler view

I have a fragment with Recycler view View view = inflater.inflate(R.layout.recyclerview, container, false); ViewGroup fragmentview=(ViewGroup)getView(); dashboardcontentList = new ArrayList<>(); adapter = new…
2
votes
1 answer

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

Im new with android. I am developing an app for a Commercial Kitchen Equipment supplier. I am particularly having problems on one section. this activity products_1.xml layout resource file. I have created a linear layout with the products as…
2
votes
3 answers

How to use PlaceAutoCompleteFragment widget in a Fragment

I am using PlaceAutoCompleteFragment inside a Fragment. First time when Fragment(App fragment in which PlaceAutoCompleteFragment is placed) opens it works fine like a charm. But, then second time I hit button to open Fragment it crashes with below…
user5829709
  • 23
  • 1
  • 7