android-support-library

Cannot switch between modes in DayNight theme dynamically

此生再无相见时 提交于 2020-04-08 09:32:18
问题 I implemented the DayNight theme in my app and added a setting to switch between day and night mode, but I'm not able to switch between modes dynamically without a restart. If I use setDefaultNightMode() after the setting has been changed, the settings activity doesn't change mode, but the activities in the backstack do. If I additionally use setLocalNightMode() the settings activity gets recreated and changes its mode, but now the activities in the backstack don't. I could not find a way to

Different android support versions in packages?

生来就可爱ヽ(ⅴ<●) 提交于 2020-03-25 18:40:50
问题 I am trying to adapt the classytaxi app to androidx: I needed to get multidex activated (in the gradle file, the manifest had already a name field asigned to .SubApp in the application Tag, see manifest snippet). I get this error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl; [...] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList [...] according to that question, the

Different android support versions in packages?

断了今生、忘了曾经 提交于 2020-03-25 18:38:17
问题 I am trying to adapt the classytaxi app to androidx: I needed to get multidex activated (in the gradle file, the manifest had already a name field asigned to .SubApp in the application Tag, see manifest snippet). I get this error: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl; [...] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList [...] according to that question, the

AccountAuthenticatorActivity for AppCompat

老子叫甜甜 提交于 2020-02-28 08:42:12
问题 I'm making an authenticator following the tutorial: http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/ The login Activity requires to extend AccountAuthenticatorActivity , the issue starts here: AccountAuthenticatorActivity extends the regular Activity and not AppCompatActivity . Using the regular Activity in AppCompat results in a Activity without ActionBar . I want to use AccountAuthenticatorActivity AND having an ActionBar . 回答1: The key is AppCompatDelegate , my code

OnUnhandledKeyEventListener class not found

落爺英雄遲暮 提交于 2020-02-03 10:58:02
问题 I am having error on every support design widget. Like the recyclerview, coordinator layout etc. Everytime, I add a support design widget it is showing java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener on layout issue section. I'm using api 28.0.0-rc01, gradle 4.4 android 3.1.4. Here, is my build.gradle (app) file apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.android.test5test" minSdkVersion 23

OnUnhandledKeyEventListener class not found

青春壹個敷衍的年華 提交于 2020-02-03 10:54:31
问题 I am having error on every support design widget. Like the recyclerview, coordinator layout etc. Everytime, I add a support design widget it is showing java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener on layout issue section. I'm using api 28.0.0-rc01, gradle 4.4 android 3.1.4. Here, is my build.gradle (app) file apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "com.example.android.test5test" minSdkVersion 23

“package android.support.v7.app does not exist” error in androidStudio

元气小坏坏 提交于 2020-01-30 08:50:29
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

“package android.support.v7.app does not exist” error in androidStudio

别来无恙 提交于 2020-01-30 08:50:21
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

“package android.support.v7.app does not exist” error in androidStudio

核能气质少年 提交于 2020-01-30 08:49:44
问题 i am just starting with android development using androidStudio i am following udacity tutorial where they asked us to copy paste some code and run it i am unable to run the cod after pasting i think the major problem is while importing import android.support.v7.app.AppCompatActivity; i have checked internet for solution to this problem including stackoverflow but it seems that it is different for each case i have tried to import import androidx.appcompat.app.AppcompatActivity; instead of

Replace deprecated android.support.v4.app.ActionBarDrawerToggle with support.v7 version cause drawer not works on Jelly Bean

早过忘川 提交于 2020-01-29 02:58:44
问题 Following the answer in this question i have replaced ActionBarDrawerToggle of support v4 library that in latest update(rev 21) has been deprecated with the latest ActionBarDrawerToggle of support-v7 library . Now the drawer works on Andrid Lollipop Emulator without deprecation warnings but when I test the app on a Jelly Bean real device no drawer and no toggle drawer button is shown. What the hell appened with this support library update? How could I fix this issue without downgrade to