App Crashing for lower than lollipop while setting up Digits - android

FATAL EXCEPTION: mainProcess: com.easy.easypackage, PID: 17362
java.lang.NoClassDefFoundError: io.fabric.sdk.android.InitializationTask
at io.fabric.sdk.android.Kit.<init>(Kit.java:45)
at com.twitter.sdk.android.core.TwitterCore.<init>(TwitterCore.java:69)
at com.twitter.sdk.android.core.TwitterCore.<init>(TwitterCore.java:63)
at com.easy.easypackage.utils.AppApplication.onCreate(AppApplication.java:22)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4730)
at android.app.ActivityThread.access$1600(ActivityThread.java:175)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1368)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
I have setup digits and everything works fine for lolipop and above version devices but crashes on lower version devices from kitkat.

Todd from Fabric. It is important to note that Digits 2.0 supports Android 14+. Please do not upgrade to Digits 2.0 if your project needs to be built for Android versions less than 14. Check out this page for details.

Related

Tinylog Android, VerifyError exception

After updating tinylog to version 2.5.0-M1.1 \ 2.5.0-M2, On Android 4.4 API 19 Started throwing VerifyError exceptions as soon as ThreadContext.put() or org.tinylog.Logger.tag() is called. On other versions of android everything is fine
Translation to version 2.4.1 helps. But I need to use DynamicPolicy
I did not find the minimum version of the API in the documentation. From the application side, I could not get around the exception. Can you please tell me if this can be fixed or version 2.5 is not supported on android 4.4?
Here is the full exception:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: ru.wsoft.push.sample, PID: 6609
java.lang.VerifyError: org/tinylog/configuration/JndiValueResolver
at org.tinylog.configuration.Configuration.<clinit>(Configuration.java:64)
at org.tinylog.provider.ProviderRegistry.loadLoggingProvider(ProviderRegistry.java:87)
at org.tinylog.provider.ProviderRegistry.<clinit>(ProviderRegistry.java:39)
at org.tinylog.ThreadContext.<clinit>(ThreadContext.java:32)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at ru.wings.push.sdk.logging.b.a(Unknown Source)
at e.a.a(Unknown Source)
at e.a.$r8$lambda$a3WCZYd0yZju55XeNNLHv5MIHVY(Unknown Source)
at e.a$$ExternalSyntheticLambda0.onComplete(Unknown Source)
at com.google.android.gms.tasks.zzj.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
enter code here
This bug is fixed in tinylog 2.5.0-M2.1: https://tinylog.org/v2/2022/06/update-for-second-milestone-2/
Thank you for reporting this bug! Please test this version and let me know, whether it works for you.

Android MultiDex app crashing on low APIs on Android Studio 3.0

I was trying to run an app that requires MultiDex using Android Studio 3.0 on an API 16 device and when the app is finally trying to launch, it crashes.
The same occurs on other low APIs (eg.: 17, 18, 19)
But, when I tried to run the app using the Android Studio 3.1 (beta version), no crashes occur.
Is there any way this crash can be fixed?
FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at android.support.multidex.MultiDexApplication.<init>(MultiDexApplication.java:35)
at MY_APP_PATH.MY_CUSTOM_APPLICATION_CLASS.<init>(MY_CUSTOM_APP_CLASS.java:23)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newApplication(Instrumentation.java:997)
at android.app.Instrumentation.newApplication(Instrumentation.java:982)
at android.app.LoadedApk.makeApplication(LoadedApk.java:496)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4170)
at android.app.ActivityThread.access$1400(ActivityThread.java:134)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4867)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1306]: 1674 cannot locate '__isnanf'...
at java.lang.Runtime.loadLibrary(Runtime.java:370)
at java.lang.System.loadLibrary(System.java:535)
at com.android.tools.profiler.support.ProfilerService.<clinit>(ProfilerService.java:41)
at android.support.multidex.MultiDexApplication.<init>(MultiDexApplication.java:35) 
at MY_APP_PATH.MY_CUSTOM_APPLICATION_CLASS.<init>(MY_CUSTOM_APPLICATION_CLASS.java:23) 
at java.lang.Class.newInstanceImpl(Native Method) 
at java.lang.Class.newInstance(Class.java:1319) 
at android.app.Instrumentation.newApplication(Instrumentation.java:997) 
at android.app.Instrumentation.newApplication(Instrumentation.java:982) 
at android.app.LoadedApk.makeApplication(LoadedApk.java:496) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4170) 
at android.app.ActivityThread.access$1400(ActivityThread.java:134) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:137) 
at android.app.ActivityThread.main(ActivityThread.java:4867) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:511) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774) 
at dalvik.system.NativeStart.main(Native Method) 
Issue should be about enabling "advanced profiling" feature in AS 3.0, if you've done so just disable it:
Go to "Edit Configurations...",
Select your app configuration under "Android App",
Then go "Profiling" tab and
Uncheck "Enable advanced profiling"
Problem should be gone.

Updating Android Studio to version 2.2 and project not run

My project run normally in Android Studio version 2.1.2.In my project used Google map when I update AS to version 2.2 project not run (I do not use fire base but in log this error shown)
this is error log:
java.lang.NoClassDefFoundError: com.google.firebase.FirebaseOptions
at com.google.firebase.FirebaseApp.zzbu(Unknown Source)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
at android.app.ActivityThread.installProvider(ActivityThread.java:4818)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4413)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4353)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
I was stuck with the same error for 2-3 days after i updated my Android Studio. There are many similar error questions on stack overflow. But nothing worked.
To solve it i created a new project in android studio. Copied all my code and dependencies to the new project and it worked for me.
And follow this link stackoverflow.com/a/37364044/6812027 and try to implement methods given.

Fatal Exception: java.lang.ExceptionInInitializerError with AdMob SDK

I got 51 app crashes in 3 days with this crash report:
Fatal Exception: java.lang.ExceptionInInitializerError
at hrh.(:com.google.android.gms)
at hrh.(:com.google.android.gms)
at hqu.(:com.google.android.gms)
at hrb.(:com.google.android.gms)
at com.google.android.gms.chimera.container.GmsModuleFinder.b(:com.google.android.gms:437)
at com.google.android.gms.chimera.container.DynamiteLoaderImpl.getModuleVersion2(:com.google.android.gms:43)
at krn.onTransact(:com.google.android.gms:83)
at android.os.Binder.transact(Binder.java:361)
at aqb.a(:com.google.android.gms.DynamiteModulesA:155)
at apn.a(:com.google.android.gms.DynamiteModulesA:293)
at apo.a(:com.google.android.gms.DynamiteModulesA:97)
at app.a(:com.google.android.gms.DynamiteModulesA:108)
at apn.a(:com.google.android.gms.DynamiteModulesA:216)
at mu.(:com.google.android.gms.DynamiteModulesA)
at mu.a(:com.google.android.gms.DynamiteModulesA:32)
at com.google.android.gms.ads.internal.overlay.bb.a(:com.google.android.gms.DynamiteModulesA:21)
at com.google.android.gms.ads.internal.zzb.zza(:com.google.android.gms.DynamiteModulesA:537)
at com.google.android.gms.ads.internal.zzb.zza(:com.google.android.gms.DynamiteModulesA:144)
at com.google.android.gms.ads.internal.ClientApi.retainReference(:com.google.android.gms.DynamiteModulesA:312)
at com.google.android.gms.ads.internal.zzn.zza(:com.google.android.gms.DynamiteModulesA:116)
at com.google.android.gms.ads.internal.client.zzz.onTransact(:com.google.android.gms.DynamiteModulesA:81)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.ads.internal.client.zzu$zza$zza.zzaM(Unknown Source)
at com.google.android.gms.ads.internal.client.zzab.destroy(Unknown Source)
at com.google.android.gms.ads.BaseAdView.loadAd(Unknown Source)
at com.google.android.gms.ads.AdView.resume(Unknown Source)
at club.androidy.callcontrolfree.Activities.MainActivity.onCreate(MainActivity.java:182)
at android.app.Activity.performCreate(Activity.java:5289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2272)
at android.app.ActivityThread.access$800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.NullPointerException
at hbu.a(:com.google.android.gms:1246)
at hbr.b(:com.google.android.gms:198)
at com.google.android.gms.common.threads.internal.GlobalExecutorsImpl.(:com.google.android.gms)
at hrh.(:com.google.android.gms)
at hrh.(:com.google.android.gms)
at hqu.(:com.google.android.gms)
at hrb.(:com.google.android.gms)
at com.google.android.gms.chimera.container.GmsModuleFinder.b(:com.google.android.gms:437)
at com.google.android.gms.chimera.container.DynamiteLoaderImpl.getModuleVersion2(:com.google.android.gms:43)
at krn.onTransact(:com.google.android.gms:83)
at android.os.Binder.transact(Binder.java:361)
at aqb.a(:com.google.android.gms.DynamiteModulesA:155)
at apn.a(:com.google.android.gms.DynamiteModulesA:293)
at apo.a(:com.google.android.gms.DynamiteModulesA:97)
at app.a(:com.google.android.gms.DynamiteModulesA:108)
at apn.a(:com.google.android.gms.DynamiteModulesA:216)
at mu.(:com.google.android.gms.DynamiteModulesA)
at mu.a(:com.google.android.gms.DynamiteModulesA:32)
at com.google.android.gms.ads.internal.overlay.bb.a(:com.google.android.gms.DynamiteModulesA:21)
at com.google.android.gms.ads.internal.zzb.zza(:com.google.android.gms.DynamiteModulesA:537)
at com.google.android.gms.ads.internal.zzb.zza(:com.google.android.gms.DynamiteModulesA:144)
at com.google.android.gms.ads.internal.ClientApi.retainReference(:com.google.android.gms.DynamiteModulesA:312)
at com.google.android.gms.ads.internal.zzn.zza(:com.google.android.gms.DynamiteModulesA:116)
at com.google.android.gms.ads.internal.client.zzz.onTransact(:com.google.android.gms.DynamiteModulesA:81)
at android.os.Binder.transact(Binder.java:361)
at com.google.android.gms.ads.internal.client.zzu$zza$zza.zzaM(Unknown Source)
at com.google.android.gms.ads.internal.client.zzab.destroy(Unknown Source)
at com.google.android.gms.ads.BaseAdView.loadAd(Unknown Source)
at com.google.android.gms.ads.AdView.resume(Unknown Source)
at club.androidy.callcontrolfree.Activities.MainActivity.onCreate(MainActivity.java:182)
at android.app.Activity.performCreate(Activity.java:5289)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2272)
at android.app.ActivityThread.access$800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1208)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(NativeStart.java)
It's related to AdMob SDK I think
It's happening on all phones with any android version
I'm using SDK version 8.4.0 as the latest version doesn't deliver ads to devices that doesn't have google play services installed.
compile 'com.google.android.gms:play-services-ads:8.4.0'
The line that causes the issue is
mAdView.loadAd(adRequest);
I tried to just catch the exception with try/catch but it seems that's not working because the app is still crashing.
How to solve this.
Thanks in Advance
As Mike Odie said it seems it's a bug and they are trying to handle it.
You can post your logcat and follow the issue here:
https://groups.google.com/forum/#!topic/google-admob-ads-sdk/jXQW4gwUEDs
I wanted to put it in an answer in case anyone didn't notice Mike's comment.
Edit:
According to this comment of Vu Chau a member of Mobile Ads SDK Team in 15 Jul
The fix is included in the rollout of Google Play services that is scheduled to be 100% complete towards the end of the month. So, the fix has been live, and as the month draws to a close, you should see the frequency of the crashes gradually decreasing.
I will continue monitoring the rollout progress and let you know if there is any change.
Vu Chau
Mobile Ads SDK Team
So the fix is live now and I already noticed that crashes were stopped.
Thanks.

MobileFirst 7.1 integration with WCS7(fep 8) Aurora store

I am following Steps provided by IBM to build MobileFirst hybrid application for default Aurora store. I found the desired WCWorklight.zip at location
C:\{Installation dir}\components\store-enhancements\samples\Worklight\
On tutorial there were many js files that need to be replaced but those were not present in WCWorklight.zip e.g.
After building the apk when I ran it it is throwing error
Process: com.ibm.commerce.worklight.android, PID: 3001
java.lang.NoClassDefFoundError: com.worklight.location.internal.nativeImpl.AndroidWLDevice
at com.worklight.wlclient.api.WLClient.<init>(WLClient.java:177)
at com.worklight.wlclient.api.WLClient.createInstance(WLClient.java:229)
at com.worklight.common.Logger.setContext(Logger.java:549)
at com.worklight.androidgap.WLDroidGap.onCreate(WLDroidGap.java:43)
at com.ibm.commerce.worklight.android.WCHybrid.onCreate(WCHybrid.java:143)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Please let me know if any one faced such issues.
Thanks in advance.
WebSphere Commerce specifically mentions that you need Worklight 6.0, where you are using 7.1.
You need to check if there is a version that is updated for 7.1.
7.1 is wholly different from 6.0 (by years of development).
Contact IBM WebSphere Commerce.

Categories

Resources