androidx

java.lang.ClassNotFoundException: Didn't find class “com.my_app_name.androidx”

荒凉一梦 提交于 2021-01-20 09:58:41
问题 After attempting to upgrade my Android app from an old version of React Native (0.55.4) to the latest version (0.60.4). Now I am unable to launch my app. It crashes every time I try to launch it. The error message seems to indicate that it's trying to reference androidx within my app's namespace: 08-09 16:52:06.163 25438 25438 E LoadedApk: Unable to instantiate appComponentFactory 08-09 16:52:06.163 25438 25438 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "com.my_app_name

java.lang.ClassNotFoundException: Didn't find class “com.my_app_name.androidx”

感情迁移 提交于 2021-01-20 09:55:30
问题 After attempting to upgrade my Android app from an old version of React Native (0.55.4) to the latest version (0.60.4). Now I am unable to launch my app. It crashes every time I try to launch it. The error message seems to indicate that it's trying to reference androidx within my app's namespace: 08-09 16:52:06.163 25438 25438 E LoadedApk: Unable to instantiate appComponentFactory 08-09 16:52:06.163 25438 25438 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "com.my_app_name

Adding horizontal scrolling to chip group in Relative layout

早过忘川 提交于 2021-01-02 08:13:39
问题 I created few static chips in a group. I'm using this link (https://material.io/design/components/chips.html#) as reference. Code is as given below: <RelativeLayout android:id="@+id/inputLayout" android:layout_width="match_parent" android:layout_height="100dp" android:layout_alignParentBottom="true" android:background="@android:color/white" android:gravity="bottom" android:paddingStart="8dp" android:paddingTop="8dp" android:paddingEnd="8dp" android:paddingBottom="9dp"> <ImageView android:id="

androidx.work.impl.WorkManagerInitializer: java.lang.ClassNotFoundException: “androidx.work.impl.WorkManagerInitializer” on path: /data/app/app-2.apk

99封情书 提交于 2021-01-02 08:05:47
问题 I recently migrated my old app's background services to WorkManager. On recent devices (down to sdk 22 included ) it looks OK, running repeating work units and scheduling them even across device reboots as expected. The problem is when I test against old version (old is very relative here), Android sdk 14 which is my minSdkVersion . BTW also WorkManager should have the same: Backwards compatible up to API 14 according to doc. As stated in title, error I get is : java.lang.RuntimeException:

androidx.work.impl.WorkManagerInitializer: java.lang.ClassNotFoundException: “androidx.work.impl.WorkManagerInitializer” on path: /data/app/app-2.apk

风流意气都作罢 提交于 2021-01-02 08:05:31
问题 I recently migrated my old app's background services to WorkManager. On recent devices (down to sdk 22 included ) it looks OK, running repeating work units and scheduling them even across device reboots as expected. The problem is when I test against old version (old is very relative here), Android sdk 14 which is my minSdkVersion . BTW also WorkManager should have the same: Backwards compatible up to API 14 according to doc. As stated in title, error I get is : java.lang.RuntimeException:

androidx.work.impl.WorkManagerInitializer: java.lang.ClassNotFoundException: “androidx.work.impl.WorkManagerInitializer” on path: /data/app/app-2.apk

别来无恙 提交于 2021-01-02 08:03:10
问题 I recently migrated my old app's background services to WorkManager. On recent devices (down to sdk 22 included ) it looks OK, running repeating work units and scheduling them even across device reboots as expected. The problem is when I test against old version (old is very relative here), Android sdk 14 which is my minSdkVersion . BTW also WorkManager should have the same: Backwards compatible up to API 14 according to doc. As stated in title, error I get is : java.lang.RuntimeException:

AndroidX Security EncryptedSharedPreferences v1.1.0 /w API 21 issue

筅森魡賤 提交于 2021-01-02 05:42:07
问题 I decided to use new EncryptedSharedPreferences from AndroidX Security library. Since the app is supporting API 21 and higher, I decided to try out this new v1.1.0-alpha02 version, since it supports API 21+ So, I succeded to make the implementation for API 23+, but for older versions where Android KeyStore is not supported, I couldn't make it right, and there are no exact instructions how the master key should be created to make it work somehow. The code for initializing SharedPrefs:

AndroidX Security EncryptedSharedPreferences v1.1.0 /w API 21 issue

牧云@^-^@ 提交于 2021-01-02 05:40:25
问题 I decided to use new EncryptedSharedPreferences from AndroidX Security library. Since the app is supporting API 21 and higher, I decided to try out this new v1.1.0-alpha02 version, since it supports API 21+ So, I succeded to make the implementation for API 23+, but for older versions where Android KeyStore is not supported, I couldn't make it right, and there are no exact instructions how the master key should be created to make it work somehow. The code for initializing SharedPrefs:

Navigation components : Deeplink using uri depending buildType

ぐ巨炮叔叔 提交于 2020-12-28 00:17:15
问题 Any way to read a constant depending buildType ${deepLinkHost} ? debug -> deepLinkUri = http://link.debug/ staging -> deepLinkUri = http://link.staging/ release -> deepLinkUri= http://link/ <?xml version="1.0" encoding="utf-8"?> <navigation xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/navigation_home" app:startDestination="@id/fragment_home"> <fragment android:id="

Navigation components : Deeplink using uri depending buildType

独自空忆成欢 提交于 2020-12-28 00:10:48
问题 Any way to read a constant depending buildType ${deepLinkHost} ? debug -> deepLinkUri = http://link.debug/ staging -> deepLinkUri = http://link.staging/ release -> deepLinkUri= http://link/ <?xml version="1.0" encoding="utf-8"?> <navigation xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/navigation_home" app:startDestination="@id/fragment_home"> <fragment android:id="