zirman / arcore-filament-example-app

ARCore Filament Example App
MIT License
97 stars 15 forks source link

java.lang.NoSuchMethodError: No static method intArrayOf #4

Closed Metadisk closed 3 years ago

Metadisk commented 3 years ago

App is crashing when open app do you know what is the issue? I am not getting any error log

zirman commented 3 years ago

I've updated the dependencies just now to see if it's an upstream bug. Please try with the latest commit and post logs and device information if it still crashes.

Metadisk commented 3 years ago

I tried with the latest commit but still crashing when allowing camera permission. You can see error logs;

java.lang.NoSuchMethodError: No static method intArrayOf([I)[I in class Lkotlin/jvm/internal/Intrinsics$Kotlin; or its super classes (declaration of 'kotlin.jvm.internal.Intrinsics$Kotlin' appears in /data/app/com.example.app-n34-mrMKQtOynZ2PcTp5Ng==/base.apk!classes3.dex) at com.example.app.OpenGLKt.createEglContext(OpenGL.kt:14) at com.example.app.filament.Filament.(Filament.kt:18) at com.example.app.aractivity.ArActivity.createUx(ArActivity.kt:319) at com.example.app.aractivity.ArActivity$onCreate$7.invokeSuspend(ArActivity.kt:192) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:7948) 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:1075)

zirman commented 3 years ago

Does your device support OpenGL 1.3? It's a minimum requirement for Filament. Please post your device model and operating system version.

Metadisk commented 3 years ago

I am using, Samsung A40 and Realme Pro. Both Android 10. Is it working on your side? I have already run with these devices other Filament projects.

zirman commented 3 years ago

Yes, it works with my Pixel 4a, Pixel 5, Samsung Galaxy S9 and Samsung Active Pro. Filament min version is 1.3 but the code that is crashing seems to be because it's using the Android EGL14 API. I mostly copied that from the original Sceneform library. If you can get it initializing OpenGL on your device, and have it use EGL14 only when it's available, I'd take a patch request. Sorry I don't have a fix for you.

darrentaft commented 3 years ago

Looks like a known issue with the Turkish locale being used when compiling: https://youtrack.jetbrains.com/issue/KT-43405

zirman commented 3 years ago

@poyyeemobile Were you able to resolve your issue?