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
2 answers

android.view.InflateException when use an imageview

im trying to put an imageview at the top to show a logo but when i run the app i have this error: android.view.InflateException: Binary XML file line #13: Error inflating class android.widget.ImageView if i delete that imageview the code runs…
jtaco263
  • 43
  • 1
  • 10
0
votes
1 answer

I have an "inflate exception" error in Android Studio

I've modified the XML code but it is still error:
Alif Al-Gibran
  • 1,166
  • 1
  • 13
  • 24
0
votes
2 answers

Is that right to make android.view.InflateException by using Vector drawables in android:background: line in a ImageView

I am facing android.view.InflateException in my app for some particular devices, in others phone it works fine. But i don't know why. Many others says that this problem occurs for drawable vector image. I am using vector image in android:background=…
Nazmus Saadat
  • 973
  • 9
  • 22
0
votes
0 answers

android.view.InflateException: Error inflating class com.facebook.login.widget.LoginButton

I am integrating facebook login in an android app with firebase. The app crash when the login activity starts and shows the following error Unable to start activity ComponentInfo{com.environer.behappy/com.environer.behappy.LoginActivity}:…
0
votes
2 answers

Custom View inflating error

I have a simple custom View: public class ScrollDisabledViewPager extends ViewPager { public ScrollDisabledViewPager(Context context) { super(context); } public ScrollDisabledViewPager(Context context, AttributeSet attrs) { …
Vanya Makhlinets
  • 248
  • 1
  • 4
  • 13
0
votes
1 answer

Android app getting error while run actual device, but it working fine with emulator

im testing one of my android app and its working fine with emulator, but when i run with actual device it keep stopping with message saying open try again (emulator and actual device both api 24 and version7.0 actual device is s7).this app backend…
Prins Prem
  • 121
  • 1
  • 1
  • 14
0
votes
0 answers

android.view.InflateException: Binary XML file line #17: Error inflating class android.widget.CheckedTextView

I have built an app loading url using a WebView. Within that WebView i am loading a form: When the select field is clicked android will…
0
votes
1 answer

InflateException only when not directly extending RecyclerView

I have gotten InflateException, 'error inflating class in Binary XML file' before, and it is usually because of a miswritten attribute or an out of memory error due to loading large images. But, I don't think this is the error in this case because I…
Travis Ho
  • 105
  • 7
0
votes
1 answer

Runtime XML errors with Android app: java.lang.NumberFormatException, InflateException and more

My app, built using Android Studio, was working when all of a sudden it started giving me the following errors: 03-07 02:07:04.665 14549-14549/uomini.com.theleaguedemo E/AndroidRuntime: FATAL EXCEPTION: main …
FractalBob
  • 3,225
  • 4
  • 29
  • 40
0
votes
1 answer

Floating action button Error inflating class android.support.design.widget.FloatingActionButton When using in DrawerLayout

I am currently using a DrawerLayout as my root layout to access the sliding menu that contain my fragments. I want to add a FAB across all fragments but get the error - android.view.InflateException: Binary XML file line #21: Binary XML file…
0
votes
1 answer

Inflate Exception Inside Fragment Class

I am working on a project that requires fragments. Whenever I test run the project, in my fragment class, I get an exception pointing to the inflaterline of my oncreateview method, like shown below. Process: com.example.joey.maranathahealthblog,…
0
votes
0 answers

Getting InflateException for TextView

I am getting InflateException for TextView. I don't know how to handle it, please help me. This is the Logcat, Process: com.aryagami.locationservices, PID: 25870 java.lang.RuntimeException: Unable to start activity…
0
votes
3 answers

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

I am receiving many errors of this kind android.view.InflateException: Binary XML file line #29: Error inflating class android.widget.Button I learn that such error may occur for several different layout resources. Can anybody explain why this…
user7142083
  • 9
  • 1
  • 3
0
votes
2 answers

Layout inflater issue only occurs some specific devices

inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); code: public class QuestionOptionsAdapter extends BaseAdapter { private final LayoutInflater inflater; private final Context context; private final…
learner
  • 3,092
  • 2
  • 21
  • 33
0
votes
1 answer

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

I am making a custom adapter in card view which loads data from a locally saved json file. I am able to fetch the data but the view is not being inflated and I keep on getting this error: E/AndroidRuntime: FATAL EXCEPTION: main Process:…