You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After generating the development apk for Android, as soon as I open it, it crashes with no other information. I don't even get to the point of opening/loading my local project.
Based on the logs, I can see that the problem is related to the Koin methods and NoSuchMethodError: AndroidRuntime: java.lang.NoSuchMethodError: No static method koinApplication(Lkotlin/jvm/functions/Function1;)Lorg/koin/core/KoinApplication; in class Lorg/koin/dsl/KoinApplicationKt; or its super classes (declaration of 'org.koin.dsl.KoinApplicationKt' appears in .
By searching online, I found out this comment:
For 3.5, I've added API check & propose to add the following koinApplication function, in order to let you control eager instance creation:
funkoinApplication(createEagerInstances:Boolean = true, appDeclaration:KoinAppDeclaration? = null): KoinApplication {
val koinApplication =KoinApplication.init()
appDeclaration?.invoke(koinApplication)
if (createEagerInstances) {
koinApplication.createEagerInstances()
}
return koinApplication
}
@arnaudgiuliani This caused yet another incompatibility that suddenly there is no method with signature org.koin.core.KoinApplication org.koin.dsl.KoinApplicationKt.koinApplication(kotlin.jvm.functions.Function1), causing a java.lang.NoSuchMethodError crash for the SDK I work on.
No need to resolve this issue now. Just wanted you to be aware of this.
05-22 11:43:04.016 1184411897 D FBAudienceNetwork: SDK dex loading time: 178
05-22 11:43:04.031 1184411844 W SoLoader: SoLoader initialized: 8
05-22 11:43:04.085 1184411844 D AndroidRuntime: Shutting down VM
05-22 11:43:04.087 1184411844 E AndroidRuntime: FATAL EXCEPTION: main
05-22 11:43:04.087 1184411844 E AndroidRuntime: Process: com.abc.hwai, PID: 11844
05-22 11:43:04.087 1184411844 E AndroidRuntime: java.lang.NoSuchMethodError: No static method koinApplication(Lkotlin/jvm/functions/Function1;)Lorg/koin/core/KoinApplication; in class Lorg/koin/dsl/KoinApplicationKt; or its super classes (declaration of 'org.koin.dsl.KoinApplicationKt' appears in /data/app/~~auYJ9HPiKil412I0EARfwg==/com.abc.hwai-am4htYjZWhSEdetq1OlIfQ==/base.apk!classes10.dex)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.koin.DevLauncherKoinAppKt$koinAppFactory$1.invoke(DevLauncherKoinApp.kt:29)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.koin.DevLauncherKoinAppKt$koinAppFactory$1.invoke(DevLauncherKoinApp.kt:28)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.koin.DevLauncherKoinContext.<clinit>(DevLauncherKoinApp.kt:35)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.DevLauncherController$Companion.wasInitialized(DevLauncherController.kt:382)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.rncompatibility.DevLauncherReactNativeHostHandler.getUseDeveloperSupport(DevLauncherReactNativeHostHandler.kt:21)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ReactNativeHostWrapperBase$getUseDeveloperSupport$1.invoke(ReactNativeHostWrapperBase.kt:72)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ReactNativeHostWrapperBase$getUseDeveloperSupport$1.invoke(ReactNativeHostWrapperBase.kt:72)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at kotlin.sequences.SequencesKt___SequencesKt.firstOrNull(_Sequences.kt:168)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ReactNativeHostWrapperBase.getUseDeveloperSupport(ReactNativeHostWrapperBase.kt:73)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ExpoReactHostFactory.createFromReactNativeHost(ExpoReactHostFactory.kt:93)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ReactNativeHostWrapper$Companion.createReactHost(ReactNativeHostWrapper.kt:53)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at com.abc.hwai.MainApplication.getReactHost(MainApplication.kt:40)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.DevLauncherController$Companion.initialize(DevLauncherController.kt:430)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.DevLauncherController$Companion.initialize$default(DevLauncherController.kt:429)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.devlauncher.DevLauncherPackageDelegate$createApplicationLifecycleListeners$1.onCreate(DevLauncherPackageDelegate.kt:38)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at expo.modules.ApplicationLifecycleDispatcher.onApplicationCreate(ApplicationLifecycleDispatcher.kt:20)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at com.abc.hwai.MainApplication.onCreate(MainApplication.kt:49)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6725)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:247)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7839)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
05-22 11:43:04.087 1184411844 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
05-22 11:43:04.097 1184411905 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-22 11:43:04.108 1184411900 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-22 11:43:04.122 1184411904 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-22 11:43:04.127 1184411905 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-22 11:43:04.160 1184411904 E com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 190, subErrorCode: -1, errorType: OAuthException, errorMessage: Invalid OAuth access token signature.}
05-22 11:43:04.201 1184411885 W FirebaseCrashlytics: Unable to read App Quality Sessions session id.
05-22 11:43:04.228 1184411885 D libcrashlytics: Initializing libcrashlytics version 3.2.0
05-22 11:43:04.230 1184411885 D libcrashlytics: Initializing native crash handling successful.
05-22 11:43:04.242 448311926 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
05-22 11:43:04.242 44834553 W ActivityTaskManager: Force finishing activity com.abc.hwai/.MainActivity
05-22 11:43:04.246 35520774 D goldfish-address-space: claimShared: Ask to claim region [0x3f7660000 0x3f7c8c000]
05-22 11:43:04.297 44834515 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
05-22 11:43:04.298 44834515 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
05-22 11:43:04.298 1184411844 I Process : Sending signal. PID: 11844 SIG: 9
05-22 11:43:04.344 44834517 I libprocessgroup: Successfully killed process cgroup uid 10154 pid 11844 in 0ms
05-22 11:43:04.344 44834497 I ActivityManager: Process com.abc.hwai (pid 11844) has died: prcp TOP
05-22 11:43:04.348 44174417 I Zygote : Process 11844 exited due to signal 9 (Killed)
05-22 11:43:04.349 1009910099 D BoundBrokerSvc: onUnbind: Intent { act=com.google.android.gms.measurement.START pkg=com.google.android.gms }
05-22 11:43:04.368 44834497 W InputManager-JNI: Input channel object '57de802 Splash Screen com.abc.hwai (client)' was disposed without first being removed with the input manager!
The text was updated successfully, but these errors were encountered:
Any workaround for this issue yet? I'm seeing this too.
Hello, I removed every part of my project and added one by one again until I found the problem.
Was related to the Ads Mediation with Admob library, specifically the Unity Ads mediation.
The temporary solution was to remove it completely from my project:
Summary
After generating the development apk for Android, as soon as I open it, it crashes with no other information. I don't even get to the point of opening/loading my local project.
Managed or bare workflow?
bare
What platform(s) does this occur on?
Android
Package versions
Environment
Reproducible demo
The APK was build via EAS Build with the following configs:
Based on the logs, I can see that the problem is related to the Koin methods and NoSuchMethodError:
AndroidRuntime: java.lang.NoSuchMethodError: No static method koinApplication(Lkotlin/jvm/functions/Function1;)Lorg/koin/core/KoinApplication; in class Lorg/koin/dsl/KoinApplicationKt; or its super classes (declaration of 'org.koin.dsl.KoinApplicationKt' appears in
.By searching online, I found out this comment:
Originally posted by @insiderser in InsertKoinIO/koin#1369 (comment)
Stacktrace (if a crash is involved)
The text was updated successfully, but these errors were encountered: