android-appcompat

ClassNotFoundException after starting app

谁都会走 提交于 2019-12-13 09:15:52
问题 When starting my app i get this LogCat: 09-22 18:07:04.487: E/AndroidRuntime(16352): FATAL EXCEPTION: main 09-22 18:07:04.487: E/AndroidRuntime(16352): Process: com.ip.whatsmyip.dl, PID: 16352 09-22 18:07:04.487: E/AndroidRuntime(16352): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ip.whatsmyip.dl/com.ip.whatsmyip.dl.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.ip.whatsmyip.dl.MainActivity" on path: DexPathList[[zip file "/data/app

How do I add appcompat-v7:27.0.1 to SDK?

元气小坏坏 提交于 2019-12-13 09:08:06
问题 I have this error: Error I think its happening because my SDK hasn't appcompat-v7:27.0.1 version. I dont know how add this version to my SDK. I need help! My appcompat-v7 folder I paste relevant code below. If you see the error elsewhere, tell me please!: /app/build.gradle android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.reactnavigationdrawer" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86"

How to fix this Build Path Error?

你说的曾经没有我的故事 提交于 2019-12-13 04:01:30
问题 This problem may the end of me. I have a red "!" over my project. I have learned this is a build path error. This is what comes up in the problems log. missing required Java project: 'appcompat_v7' missing required Java project: 'appcompat_v7_2' is missing required library: '\Copy of appcompat_v7\libs\android-support-v7-appcompat.jar is missing required Java project: 'appcompat_v7_3' is missing required library: '\appcompat_v7\libs\android-support-v4.jar' I have tried cleaning, restoring,

How do I customize menu item's background color?

▼魔方 西西 提交于 2019-12-12 20:18:08
问题 I'm trying to customize Toolbar 's popup menu. Now I can not set background color of menu item. My styles.xml looks like this: <resources> <!-- Base application theme. --> <style name="AppTheme.NoActionBar" parent="@style/Theme.AppCompat.Light.DarkActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="android:actionBarStyle">@style/AppTheme.ActionBar</item> <item name="android:actionMenuTextColor">@color/actionbar_text_color</item> <item name=

Customize google placepicker colors for android

限于喜欢 提交于 2019-12-12 20:08:59
问题 I want to customize google place picker widget for android. Can I styling primary and primary dark colors for devices with API below 21 (using appcompat matherial)? 回答1: Yes it is possible to use material design themes below android 5.0. Check This out Link 来源: https://stackoverflow.com/questions/29321281/customize-google-placepicker-colors-for-android

Android Studio error: cannot find symbol class AdapterViewCompat with compileSdkVersion 23 and buildToolsVersion '23.0.1'

时光毁灭记忆、已成空白 提交于 2019-12-12 18:04:48
问题 This is my gradle file and I am getting error: cannot find symbol import android.support.v7.internal.widget.AdapterViewCompat; error:package AdapterViewCompat does not exist. Grade is as below: apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' android { compileSdkVersion 23 buildToolsVersion '23.0.1' ... dependencies { compile 'com.android.support:cardview-v7:23.0.0' compile 'com.android.support:recyclerview-v7:23.0.0' compile 'com.android.support:design

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation after adding AppCompat to stable application

99封情书 提交于 2019-12-12 15:51:27
问题 I have my stable app that's been working for months now, and after adding appcompat_v7 to support Material theme everything went to crap. I just changed my Activities to ActionBarActivity and the theme to Theme.AppCompat Once every other run I get java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation inside a random library or in arbitrary points of execution not related to views. It requires a clean build and uninstall to get it to work again.

Cannot cast to LayerDrawable anymore (after upgrading v7)

♀尐吖头ヾ 提交于 2019-12-12 12:33:12
问题 I'm using last version of the support libraries, 22.1.1. I used to go like: mRatingBar = (RatingBar) getActivity().findViewById(R.id.rating); LayerDrawable layer = (LayerDrawable) mRatingBar.getProgressDrawable(); but after upgrading it crashes at line 2 with a ClassCastException : android.support.v4.graphics.drawable.DrawableWrapperHoneycomb cannot be cast to android.graphics.drawable.LayerDrawable at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:973) at android

Iappcompat v21: material design ActionBar() InflateException error-inflating-class

倖福魔咒の 提交于 2019-12-12 09:21:25
问题 Trying to move app made in ( appcompat v20 ) to the new library appcompat v21 with: appcompat-v7:20 work nice I did this: ActionBarActivity implements ActionBar.TabListener, ActionBar.OnNavigationListener and have this: android.view.InflateException: Binary XML file line #17: Error inflating class android.support.v7.internal.widget.ActionBarOverlayLayout Error inflating class android.support.v7.internal.widget.ActionBarView 回答1: In order to use the new appcompat v21 you have to: extend the

CoordinatorLayout NullPointerException in onTouchEvent

烈酒焚心 提交于 2019-12-12 08:39:33
问题 I am getting NullPointerException in onTouchEvent of CoordinatorLayout . I am using DrawerLayout with CollapsingToolbarLayout of android support AppCompat v23.0.0 library. My observation is crash happen randomly while scrolling CollapsingToolbarLayout or click on drawer items. Is there anyone facing this issue? any work around to avoid this exception? Logcat: 08-22 15:16:34.657: E/AndroidRuntime(27596): java.lang.NullPointerException: Attempt to invoke virtual method 'float android.view