couldn't find "libconscrypt_jni.so" - android

I followed https://stackoverflow.com/a/61560589/6447123 to support TLS 1.2 on Android 4.x
It worked before , but currently I don't know why I have the following error
2020-05-31 09:13:08.567 8735-8735/com.my_app E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.my_app, PID: 8735
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.my_app-jygsQuNVVcvr6CclEptz5A==/base.apk"],nativeLibraryDirectories=[/data/app/com.my_app-jygsQuNVVcvr6CclEptz5A==/lib/arm64, /data/app/com.my_app-jygsQuNVVcvr6CclEptz5A==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] couldn't find "libconscrypt_jni.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1657)
at org.conscrypt.NativeCryptoJni.init(NativeCryptoJni.java:28)
at org.conscrypt.NativeCrypto.<clinit>(NativeCrypto.java:63)
at org.conscrypt.NativeCrypto.checkAvailability(NativeCrypto.java:80)
at org.conscrypt.OpenSSLProvider.<init>(OpenSSLProvider.java:58)
at org.conscrypt.OpenSSLProvider.<init>(OpenSSLProvider.java:51)
at org.conscrypt.OpenSSLProvider.<init>(OpenSSLProvider.java:47)
at com.my_app.MainApplication.onCreate(MainApplication.java:51)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5877)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:173)
at android.app.ActivityThread.main(ActivityThread.java:6698)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
It crashed on a phone that works before

In you class, you should add static block to add conscrypt as security provider
static {
// add Conscrypt in list of security providers for device
Security.addProvider(Conscrypt.newProvider());
}

Related

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find "librenderscript-toolkit.so"

I'm facing a crash on console with this native library. I've imported this library as a module in project. I think, maybe I'm missing something with NDK.
Crash Trace:
Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/photocollage.photoeditor.layout.collagemaker.photo.grid-26CYJoq73H483tupCrzMjg==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app-26CYJoq73H483tupCrzMjg==/lib/arm64, /system/lib64, /hw_product/lib64, /system/product/lib64]]] couldn't find "librenderscript-toolkit.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1668)
at com.google.android.renderscript.Toolkit.<clinit>(Toolkit.kt:1097)
at FragmentCollageLayout.updateBlurBg(FragmentCollageLayout.kt:353)
at FragmentCollageLayout.updateBlurBg$default(FragmentCollageLayout.kt:351)
at FragmentCollageLayout.initBlurBg(FragmentCollageLayout.kt:334)
at FragmentCollageLayout.checkDefaultSettings(FragmentCollageLayout.java:316)
at FragmentCollageLayout.access$checkDefaultSettings(FragmentCollageLayout.java:56)
at FragmentCollageLayout$initCollage$1.onGlobalLayout(FragmentCollageLayout.kt:308)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1056)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2858)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1876)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8167)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1057)
at android.view.Choreographer.doCallbacks(Choreographer.java:875)
at android.view.Choreographer.doFrame(Choreographer.java:776)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1042)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8349)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)

Google pre-launch stability errors for: com.google.android.apps.mtaas.deviceadmin

I'm trying to submit an update to an existing app to production, but I seem to be failing in the prelaunch for one specific device on on android sdk 26. I can reproduce this on emulation of sdk 26. The testing video seemed to just show the automated testing opening and closing the app and clicking around for about 5 minutes. I didn't seem to see any errors in the app itself.
I'm received several errors and all seem to be related to items related to com.google.android.apps.mtaas .
My app doesn't use any DeviceAdmin features so I'm not sure where these are coming from. Also, after looking at the full logcat file none of these process ID's match with the process ID's of my running app, and some of these seem to occur in the logs before I see much activity from the testing opening/closing my app.
Does anyone have any clue where to begin? I can't seem to recreate it, and without any hint to how they might relate to my code(if they do at all) I can't properly attempt to implement any fix.
I've seen numerous threads about false positives related to the prelaunch reports generating false positivies, but I'm not sure if that's the case here or not.
FATAL EXCEPTION: Instr: com.google.android.apps.mtaas.deviceadmin.HideApps
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14692
java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.isApplicationHidden(IDevicePolicyManager.java:8952)
at android.app.admin.DevicePolicyManager.isApplicationHidden(DevicePolicyManager.java:7466)
at com.google.android.apps.mtaas.deviceadmin.HideApps.onStart(HideApps.java:63)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:2106)
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14836
java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction}
: java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6050)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setUserRestriction(IDevicePolicyManager.java:8542)
at android.app.admin.DevicePolicyManager.addUserRestriction(DevicePolicyManager.java:7339)
at com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction.start(ToggleUserRestriction.java:49)
at com.google.android.apps.mtaas.deviceadmin.ToggleUserRestriction.onCreate(ToggleUserRestriction.java:22)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6047)
... 8 more
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.deviceadmin, PID: 14959
java.lang.RuntimeException: Exception thrown in onCreate() of ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy}
: java.lang.SecurityException: No active admin ComponentInfo
{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6050)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.google.android.apps.mtaas.deviceadmin/com.google.android.apps.mtaas.deviceadmin.DeviceAdminReceiver}
at android.os.Parcel.readException(Parcel.java:1958)
at android.os.Parcel.readException(Parcel.java:1904)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setSystemUpdatePolicy(IDevicePolicyManager.java:9956)
at android.app.admin.DevicePolicyManager.setSystemUpdatePolicy(DevicePolicyManager.java:7970)
at com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy.start(SetUpdatePolicy.java:51)
at com.google.android.apps.mtaas.deviceadmin.SetUpdatePolicy.onCreate(SetUpdatePolicy.java:34)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6047)
... 8 more
FATAL EXCEPTION: main
Process: com.google.android.apps.mtaas.tools, PID: 23437
java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo
{com.google.android.apps.mtaas.tools/androidx.test.runner.AndroidJUnitRunner}
: java.lang.ClassNotFoundException: Didn't find class "androidx.test.runner.AndroidJUnitRunner" on path: DexPathList[[zip file "/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/lib/arm64, /system/lib64, /vendor/lib64]]
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5995)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1764)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.test.runner.AndroidJUnitRunner" on path: DexPathList[[zip file "/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.mtaas.tools-kyrqBrU_34KhOurU1Kfvdg==/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5993)
... 8 more

PackageManager$NameNotFoundException for rxAndroidBle

For version 1.12.1, I am getting a runtime exception after upgrading to this version from 1.10.5
2021-07-16 15:30:16.588 22665-22665/co.(appname).staging E/AndroidRuntime: FATAL EXCEPTION: main
Process: co.(appname).staging:svc, PID: 22665
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/jakewharton/rxrelay2/BehaviorRelay;
at com.polidea.rxandroidble2.internal.DeviceModule.provideConnectionStateRelay(DeviceModule.java:57)
at com.polidea.rxandroidble2.internal.DeviceModule_ProvideConnectionStateRelayFactory.get(DeviceModule_ProvideConnectionStateRelayFactory.java:17)
at com.polidea.rxandroidble2.internal.DeviceModule_ProvideConnectionStateRelayFactory.get(DeviceModule_ProvideConnectionStateRelayFactory.java:9)
at bleshadow.dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.polidea.rxandroidble2.internal.RxBleDeviceImpl_Factory.get(RxBleDeviceImpl_Factory.java:31)
at com.polidea.rxandroidble2.internal.RxBleDeviceImpl_Factory.get(RxBleDeviceImpl_Factory.java:11)
at bleshadow.dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.polidea.rxandroidble2.DaggerClientComponent$DeviceComponentImpl.provideDevice(DaggerClientComponent.java:509)
at com.polidea.rxandroidble2.internal.RxBleDeviceProvider.getBleDevice(RxBleDeviceProvider.java:43)
at com.polidea.rxandroidble2.internal.scan.InternalToExternalScanResultConverter.apply(InternalToExternalScanResultConverter.java:26)
at com.polidea.rxandroidble2.internal.scan.InternalToExternalScanResultConverter.apply(InternalToExternalScanResultConverter.java:13)
at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:57)
at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60)
at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66)
at com.polidea.rxandroidble2.internal.serialization.FIFORunnableEntry$1$1.onNext(FIFORunnableEntry.java:68)
at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60)
at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66)
at com.polidea.rxandroidble2.internal.operations.ScanOperationApi21$1.onScanResult(ScanOperationApi21.java:83)
at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:492)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7664)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.jakewharton.rxrelay2.BehaviorRelay" on path: DexPathList[[zip file "/data/app/~~azBMNu86abFT1X-EHOpB2A==/co.(appname).staging-eYQb5VbY1nmgyq2oa0oeWA==/base.apk"],nativeLibraryDirectories=[/data/app/~~azBMNu86abFT1X-EHOpB2A==/co.(appname).staging-eYQb5VbY1nmgyq2oa0oeWA==/lib/arm64, /data/app/~~azBMNu86abFT1X-EHOpB2A==/co.(appname).staging-eYQb5VbY1nmgyq2oa0oeWA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64, /product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.polidea.rxandroidble2.internal.DeviceModule.provideConnectionStateRelay(DeviceModule.java:57) 
at com.polidea.rxandroidble2.internal.DeviceModule_ProvideConnectionStateRelayFactory.get(DeviceModule_ProvideConnectionStateRelayFactory.java:17) 
at com.polidea.rxandroidble2.internal.DeviceModule_ProvideConnectionStateRelayFactory.get(DeviceModule_ProvideConnectionStateRelayFactory.java:9) 
at bleshadow.dagger.internal.DoubleCheck.get(DoubleCheck.java:47) 
at com.polidea.rxandroidble2.internal.RxBleDeviceImpl_Factory.get(RxBleDeviceImpl_Factory.java:31) 
at com.polidea.rxandroidble2.internal.RxBleDeviceImpl_Factory.get(RxBleDeviceImpl_Factory.java:11) 
at bleshadow.dagger.internal.DoubleCheck.get(DoubleCheck.java:47) 
at com.polidea.rxandroidble2.DaggerClientComponent$DeviceComponentImpl.provideDevice(DaggerClientComponent.java:509) 
at com.polidea.rxandroidble2.internal.RxBleDeviceProvider.getBleDevice(RxBleDeviceProvider.java:43) 
at com.polidea.rxandroidble2.internal.scan.InternalToExternalScanResultConverter.apply(InternalToExternalScanResultConverter.java:26) 
at com.polidea.rxandroidble2.internal.scan.InternalToExternalScanResultConverter.apply(InternalToExternalScanResultConverter.java:13) 
at io.reactivex.internal.operators.observable.ObservableMap$MapObserver.onNext(ObservableMap.java:57) 
at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60) 
at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66) 
at com.polidea.rxandroidble2.internal.serialization.FIFORunnableEntry$1$1.onNext(FIFORunnableEntry.java:68) 
at io.reactivex.internal.operators.observable.ObservableUnsubscribeOn$UnsubscribeObserver.onNext(ObservableUnsubscribeOn.java:60) 
at io.reactivex.internal.operators.observable.ObservableCreate$CreateEmitter.onNext(ObservableCreate.java:66) 
at com.polidea.rxandroidble2.internal.operations.ScanOperationApi21$1.onScanResult(ScanOperationApi21.java:83) 
at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:492) 
at android.os.Handler.handleCallback(Handler.java:938) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:223) 
at android.app.ActivityThread.main(ActivityThread.java:7664) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 
The catch? I have forked the repo, made a couple very small changes (like small changes to timeouts for example), and created a build with Jitpack. I checked their Jitpack build log (https://jitpack.io/com/github/polidea/RxAndroidBle/release-1.12.1-rxjava2/build.log) against my own, and they are almost identical. I see the missing errors, I have the exact same ones. The difference is that if I use the official polidea rxAndroidBle gradle thing (which I believe is pulled from Jitpack), I do not get the same runtime issue.
I have been looking for hours and feel like I am at a dead-end. I wanted to create an issue against the repo, but I am not confident that it is their issue. Something specific with what I have done with the build, but I do not know where the difference could be.
I was able to solve the issue by adding again the missing libraries that are not resolved when publishing a version with JitPack.
android: 'io.reactivex.rxjava2:rxandroid:2.1.0',
java : 'io.reactivex.rxjava2:rxjava:2.2.2',
relay : 'com.jakewharton.rxrelay2:rxrelay:2.1.0'

Getting classNotFindException when using Firebase performance lib with slyce android sdk

I am currently stuck with integrating the new firebase perf with my current android app. Everything works fine when I disable it i.e., firebasePerformanceInstrumentationEnabled = false. But I keep getting the below error when I enable it i.e., set it's value to true`.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.testflight.app, PID: 22011
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/neovisionaries/ws/client/D;
at com.neovisionaries.ws.client.WebSocketFactory.<init>(SourceFile:2)
at it.slyce.sdk.internal.SlyceWebSocketWorkflowTask.e(SourceFile:1)
at it.slyce.sdk.internal.SlyceWebSocketWorkflowTask.onEncodingComplete(SourceFile:3)
at it.slyce.sdk.internal.BitmapEncodingTask.a(SourceFile:4)
at it.slyce.sdk.internal.BitmapEncodingTask.onPostExecute(SourceFile:1)
at android.os.AsyncTask.finish(AsyncTask.java:755)
at android.os.AsyncTask.access$900(AsyncTask.java:192)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7811)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.neovisionaries.ws.client.D" on path: DexPathList[[zip file "/data/app/com.ashleyfurniturehomestore.ecomm-X1w1G27mqcSRlwfLujt7mQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.testflight.app-X1w1G27mqcSRlwfLujt7mQ==/lib/arm64, /data/app/com.testflight.app-X1w1G27mqcSRlwfLujt7mQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.neovisionaries.ws.client.WebSocketFactory.<init>(SourceFile:2)
at it.slyce.sdk.internal.SlyceWebSocketWorkflowTask.e(SourceFile:1)
at it.slyce.sdk.internal.SlyceWebSocketWorkflowTask.onEncodingComplete(SourceFile:3)
at it.slyce.sdk.internal.BitmapEncodingTask.a(SourceFile:4)
at it.slyce.sdk.internal.BitmapEncodingTask.onPostExecute(SourceFile:1)
at android.os.AsyncTask.finish(AsyncTask.java:755)
at android.os.AsyncTask.access$900(AsyncTask.java:192)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:772)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7811)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
How can I solve this?
Try to run with proguard disabled. If it works, you need to edit your ProguardRules.pro file to exclude Firebase libraries.

APP crashed when I installed the RN update

I integrate react-native-code-push to my RN project. But when I installed the update, the APP was crashed. Here is the source code.
2018-10-30 11:26:52.274 14122-14122/com.example.jason.rnandroid E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.jason.rnandroid, PID: 14122
java.lang.AssertionError: recreateReactContextInBackground should only be called after the initial createReactContextInBackground call.
at com.facebook.infer.annotation.Assertions.assertCondition(Assertions.java:72)
at com.facebook.react.ReactInstanceManager.recreateReactContextInBackground(ReactInstanceManager.java:339)
at com.microsoft.codepush.react.CodePushNativeModule$2.run(CodePushNativeModule.java:151)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
I don't know how to solve this problem, can anyone help?

Categories

Resources