inflate-exception

Android MapBox inflating error. Didn't find class MapView

核能气质少年 提交于 2020-07-09 06:45:07
问题 When I launch android app with MapBox library I get exception: "android.view.InflateException: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView" Field "cause" contains this text: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.mapboxsdk.views.MapView" on path: DexPathList[[zip file "/data/app/com.example.my.mymapbox-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.my.mymapbox-2/lib/arm, /vendor/lib, /system/lib]] Help please This is

Android MapBox inflating error. Didn't find class MapView

落花浮王杯 提交于 2020-07-09 06:45:07
问题 When I launch android app with MapBox library I get exception: "android.view.InflateException: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView" Field "cause" contains this text: java.lang.ClassNotFoundException: Didn't find class "com.mapbox.mapboxsdk.views.MapView" on path: DexPathList[[zip file "/data/app/com.example.my.mymapbox-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.my.mymapbox-2/lib/arm, /vendor/lib, /system/lib]] Help please This is

Why is assigning an OnClickListener to AutoCompleteTextView giving a NullPointerException?

Deadly 提交于 2020-02-16 06:06:51
问题 Whenever I assign an android:onClick attribute to an AutoCompleteTextView, my application immediately crashes upon loading the activity. I've tested AutoCompleteTextView without assigning an onClick method and it seems to work fine, as does assigning onClick to other views (including EditText, Spinners, TextViews, Buttons and ImageButtons). I've managed to narrow down the error to specifically to line 24 (setContentView(R.layout.activity_main)). Can anyone shed some light on this?

Android InflateException Error in fragment layout with SupportMapFragment (recreated fragment)

烈酒焚心 提交于 2020-01-06 19:58:08
问题 All more or less works. But if the LocationFragment is recreated, the application falls. Manifest <?xml version="1.0" encoding="utf-8"?> <manifest package="XX.XX.XXXXXXXX" xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.GET_ACCOUNTS"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.CAMERA"/>

error while inflating XML in Google maps fragment

被刻印的时光 ゝ 提交于 2020-01-01 11:42:21
问题 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 SDK. 3) got the latest v2 API Key. 4) Added permission com.google.android.providers.gsf.permission.READ_GSERVICES in the manifest. 5) using mindsdk = 8 and target = 16. For a reference, Androidmanifest.xml : <?xml version="1.0" encoding="utf-8"?>

Error inflating class Button in Android

柔情痞子 提交于 2019-12-30 07:22:24
问题 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: <Button android:id="@+id/act_logon_btn_logon" style="@style/ButtonDefault" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/act_logon_logon" /> Styles are as follows (values/styles.xml): <style name="Theme.AppCompat.Light.NoActionBar

Error inflating class Button in Android

蹲街弑〆低调 提交于 2019-12-30 07:22:08
问题 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: <Button android:id="@+id/act_logon_btn_logon" style="@style/ButtonDefault" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/act_logon_logon" /> Styles are as follows (values/styles.xml): <style name="Theme.AppCompat.Light.NoActionBar

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

狂风中的少年 提交于 2019-12-25 02:22:03
问题 i have implemented an new ImageLoaderView that extends view, with a code that works if i set the xml programatically. But as this seems to be difficult I am trying to make it work for an xml in my res layout folder, but i am getting an error. Below are my codes. LoaderImageView: package com.anon.android.test; import java.io.IOException; import java.net.MalformedURLException; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import android.os

Xamairin forms : Android.Views.InflateException: <Timeout exceeded getting exception details>

爷,独闯天下 提交于 2019-12-25 00:26:31
问题 Research a lot about this issue and found the same question, which doesn't solve my problem. so starting a new question. Xamarin Android: Android.Views.InflateException - Error when loading Layout Getting Xamairin forms : Android.Views.InflateException: Timeout exceeded getting exception details when loading layout. Main.axml <?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

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

三世轮回 提交于 2019-12-24 18:57:04
问题 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= "" line. is that make this InflateException . <RelativeLayout android:id="@+id/nameLayoutMain" android:layout_width="wrap_content" android:layout_height="120dp" android:background="@drawable/shadow_164949"> <ImageView android:layout_width="80dp"