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

Firebase Crashlytics reports InflateException: ResourceNotFoundException for a Trend TaintArt for 4x6

My app is failing on a Trend TaintArt for x86 running Android 7.1.2 when it tries to inflate a layout containing an ImageView. The crash reports that the Drawable doesn't exist: Yet, the Drawable (ic_list_white) is present: Odd thing is, this…
7
votes
2 answers

EditTextPreference causes Inflate Exception

After about 1h looking for solutions to my problem in related topics, I decided to expose my case. Here it is: I'm having an InflateException everytime I try to open my PreferenceActivity. Log E/AndroidRuntime: FATAL EXCEPTION: main …
6
votes
1 answer

Robolectric InflateException when using custom action bar layout

I just setup Robolectric testing through this setup and it is giving me an error when I test out my app. I have narrowed the problem down to the ProgressSpinner which is in my custom ActionBar layout. When I disable the custom ActionBar, the test…
The Nomad
  • 7,155
  • 14
  • 65
  • 100
6
votes
2 answers

Android: Custom TextView Inflate Exception

I have created a custom TextView and the only thing I did is I put one "instance" in the layout xml. This causes to crash the app with an "Inflate Exception" : Here's the complete custom class (actually there is nothing "custom" in it yet...): …
fritz
  • 427
  • 1
  • 5
  • 13
5
votes
1 answer

Binary XML Inflate Error on PopupMenu.show() Android

I'm trying to inflate a simple PopupMenu for rename/delete options when a RecylerView item is longClicked. For some reason i'm getting an XML inflate error when I call mPopup.show() after loading my xml file into the inflater. I use similar logic…
Cody
  • 1,801
  • 3
  • 28
  • 53
5
votes
2 answers

TextView with custom style causing strange inflate exception

I am working on an Android project and I am creating a custom list view. The list view contains multiple text views, and I am creating a style for my text view so I haven't got to duplicate the same style over and over again. Below is my…
Boardy
  • 35,417
  • 104
  • 256
  • 447
5
votes
3 answers

error while inflating XML in Google maps fragment

trying to display Google map using a fragment. Used the following page as a tutorial. I am getting the exception "Error Inflating class fragment ". 1) Imported the jar google-play-services.jar 2) downloaded and configured the google play services…
5
votes
3 answers

Layout inflater error when loading app

I have a Galaxy Samsung tab 10.1" Model GT-P7510 OS Version 3.2. I tried to load app on it and it's giving me Layout inflater error. Why is this? Here is what logcat says: android.view.InflateException: Binary XML file line #12: Error inflating…
Mausam
  • 167
  • 2
  • 7
4
votes
0 answers

Error inflating class android.support.v7.widget.SearchView. Similar questions on SO did not solve it

Here is an SSCCE. I am using 23.1.1 version of appcompat_v7 support library. I am running it on a Genymotion emulator with version 23 of Android SDK. The exact error from the logcat is given at the end. activity_main.xml:
4
votes
0 answers

InflateException because Fragment did not create a view

I am developing an Android app that I am pushing out to testers using Fabric/Crashlytics. I have thoroughly tested my app on 2 physical devices myself: Samsung Galaxy Tab Pro running 4.4.2 (API 19) LG G3 running 5.0.1 (API 21) I have recently…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
4
votes
2 answers

Binary XML file line #13: Error inflating class on a class that extends VideoView

I have created a custom VideoView class which extends VideoView and declared the three constructors: package com.tibo.webtv; import java.util.Calendar; import java.util.Date; import java.util.Locale; import…
4
votes
2 answers

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

I'm trying to develop an app that has a Navigation Drawer and a Fragment to display data. This is my app activity stack: ->Login(checks if it's logged in, it skips loading the view and proceeds to Timeline) ->Timeline This is the way I get the…
4
votes
1 answer

Xamarin Studio (Android) Error Inflating Class Unless Cleaned

The Problem: After modifying any layout file in my Android project in Xamarin Studio, my mainlauncher (SplashActivity) throws the following exception. The exception continues to throw until I clean my project. The Exception: Binary XML file…
4
votes
4 answers

RuntimeException: native typeface cannot be made or memory leak for custom TextView loading font

There's a HUGE problem in my code wherein I am loading a font in my assets\fonts\ folder from a custom TextView class. The first problem is that it crashes on 4.0 devices with the exception Caused by: java.lang.RuntimeException: native typeface…
4
votes
2 answers

SplashScreen using PNG image leads to Android.Views.InflateException followed by OutOfMemory

I watched Google IO 2011 conference, read almost every post about OutOfMemory Exception and InflateException, no luck, I cannot find any answer that solve my problem. How can I properly clear memory from a layout containing a background image? I…
ForceMagic
  • 6,230
  • 12
  • 66
  • 88
1
2
3
21 22