inflate-exception

Binary XML file line : Error inflating class <unknown>

旧巷老猫 提交于 2019-11-29 14:52:08
I am getting Error inflating class <unknown> error in Android 6.0 emulators when I am trying to add foreground drawable. My logcat : Process: com.yasinkacmaz.myapp, PID: 12789 android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class <unknown> at android.view.LayoutInflater.inflate(LayoutInflater.java:539) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.yasinkacmaz.myapp.adapter.NoteAdapter.onCreateViewHolder(NoteAdapter.java:86) at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5779) at

NameNotFoundException webview

自古美人都是妖i 提交于 2019-11-28 15:12:12
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}: android.view.InflateException: Binary XML file line #29: Error inflating class com.myapp.MyWebView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) at android.app.ActivityThread.access$800(ActivityThread.java:144) at android.app.ActivityThread$H

Binary XML file line : Error inflating class <unknown>

北慕城南 提交于 2019-11-28 09:13:06
问题 I am getting Error inflating class <unknown> error in Android 6.0 emulators when I am trying to add foreground drawable. My logcat : Process: com.yasinkacmaz.myapp, PID: 12789 android.view.InflateException: Binary XML file line #14: Binary XML file line #14: Error inflating class <unknown> at android.view.LayoutInflater.inflate(LayoutInflater.java:539) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at com.yasinkacmaz.myapp.adapter.NoteAdapter.onCreateViewHolder(NoteAdapter

Inflate Bottom Navigation View menu programmatically

南笙酒味 提交于 2019-11-28 03:12:21
问题 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 menu items/titles of the Bottom Navigation view programmatically. inflateMenu(int menuResource) — Inflate a menu for the bottom navigation view using a menu resource identifier. According to docs: inflateMenu: void inflateMenu (int resId) Inflate a

Error inflating class CollapsingToolbarLayout

烈酒焚心 提交于 2019-11-27 12:45:21
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 to downgrade it to 2.0.0 version and it's not working anymore. My coworker has no problem with the CollapsingToolbarLayout. I am not sure what happened. The error was: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.android/com.test.android.ui.activity.RandomActivity}: android.view.InflateException: Binary XML file line

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

白昼怎懂夜的黑 提交于 2019-11-27 05:01:40
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 I'd like to post the stacktrace here maybe someone else can identify something I can't and help me. 06-03 22:14:17.367 28590-28590/css.mvp.example.debug W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41e4ad40) 06-03 22:14:17.409 28590-28590/css.mvp.example.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: css.mvp.example

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

妖精的绣舞 提交于 2019-11-26 17:34:10
问题 I've been trying to create a Pager for my application that runs on <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="15" /> I wrote my code according to this blog post. XML for Pager activity: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <android.support.v4.view.ViewPager android:id="@+id/instructionsViewPager

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

天涯浪子 提交于 2019-11-26 11:25:14
问题 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 I\'d like to post the stacktrace here maybe someone else can identify something I can\'t and help me. 06-03 22:14:17.367 28590-28590/css.mvp.example.debug W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41e4ad40) 06-03 22:14

InflateException with FloatingActionButton from Official Design Library

怎甘沉沦 提交于 2019-11-26 06:36:07
问题 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 android.view.LayoutInflater.createView(LayoutInflater.java:633) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) at android.view.LayoutInflater.rInflate