I am facing issue with my apk buildt through jenkins - its getting crash on using it on real android TV device.
Since my build creation jenkins job is getting success but when i am using that apk on my real devices its getting failed and error logs says :
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_773e439/Offline;
I want to know is this something related to jenkins job or some code level changes need to be done by devolpers.
我正面临着我通过Jenkins构建的APK的问题-在真正的Android电视设备上使用它时,它会崩溃。因为我的构建创建Jenkins工作正在取得成功,但是当我在我的实际设备上使用APK时,它失败了,错误日志显示:java.lang.NoClassDefFoundError:Lorg/jacoco/agent/rt/internal_773e439/Offline;的解析失败我想知道这是与Jenkins工作有关还是需要由开发人员完成某些代码级别的更改。
Attaching error logs below getting through android studio when launching app and getting crash:
在下面附上启动APP并崩溃时通过Android Studio的错误日志:
2023-08-17 16:29:16.608 29114-29114/tv.airtel.xstream.tvapp.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: tv.airtel.xstream.tvapp.debug, PID: 29114
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jacoco/agent/rt/internal_773e439/Offline;
at com.airtel.vision.AtvSdk.$jacocoInit(Unknown Source:13)
at com.airtel.vision.AtvSdk.(Unknown Source:0)
at tv.airtel.xstream.config.di.AppModuleKt$appModule$1$2.invoke(AppModule.kt:20)
at tv.airtel.xstream.config.di.AppModuleKt$appModule$1$2.invoke(Unknown Source:2)
at org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke(standardBindings.kt:134)
at org.kodein.di.bindings.SingletonReference.make(references.kt:34)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:134)
at org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:99)
at org.kodein.di.bindings.MultiItemScopeRegistry.getOrCreate(scopes.kt:62)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:134)
at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:99)
at org.kodein.di.KodeinContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)
at org.kodein.di.KodeinAwareKt$Instance$1.invoke(KodeinAware.kt:152)
at org.kodein.di.KodeinProperty$provideDelegate$1.invoke(properties.kt:39)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at tv.airtel.xstream.PlayApplication.getAtvSdk(Unknown Source:7)
at tv.airtel.xstream.PlayApplication.initAtv(PlayApplication.kt:56)
at tv.airtel.xstream.PlayApplication.onCreate(PlayApplication.kt:48)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5882)
at android.app.ActivityThread.access$1100(ActivityThread.java:200)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6680)
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:858)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.jacoco.agent.rt.internal_773e439.Offline" on path: DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/data/app/tv.airtel.xstream.tvapp.debug--k_aipq4ftZEc1641nrz7w==/base.apk"],nativeLibraryDirectories=[/data/app/tv.airtel.xstream.tvapp.debug--k_aipq4ftZEc1641nrz7w==/lib/arm, /system/lib, /product/lib]]
29114-17 16:29:16.608 29114-29114/TV.airtel.xStream.Athapp.DEBUG E/androidRuntime:致命异常:主进程:TV.airtel.xStream.Athapp.DEBUG,ID:29114 java.lang.NoClassDefFoundError:解析失败:Lorg/jacoco/agent/rt/internal_773e439/Offline;在com.airtel.vision.AtvSdk.$JacocoInit(未知源:13)在com.airtel.vision.AtvSdk.(未知源:0)在tv.airtel.xstream.config.di.AppModuleKt$appModule$1$2.invoke(AppModule.kt:20)at tv.airtel.xstream.config.di.AppModuleKt$appModule$1$2.invoke(Unknown来源:2)在org.kodein.di.bindings.Singleton$getFactory$1$1$1.invoke(standardBindings.kt:134)at org.kodein.di.bindings.SingletonReference.make(references.kt:34)at org.kodein.di.bindings.Singleton$getFactory$1$1.Invoke在org.kodein.di.bindings.Singleton$getFactory$1$1.invoke(standardBindings.kt:99)at org.kodein.di.bindings.MultiItemScopeRegistry.getOrCreate(scopes.kt:62)at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:134)at org.kodein.di.bindings.Singleton$getFactory$1.invoke(standardBindings.kt:99)at org.kodein.di.KodeinContainer$provider$$inlined$toProvider$1.invoke(curry.kt:14)at org.kodein.di.KodeinAwareKt$Instance$1.invoke(KodeinAware.kt:152)atOrg.kodein.di.KodeinProperty$provideDelegate$1.invoke(properties.kt:39)at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)at tv.airtel.xstream.PlayApplication.getAtvSdk(Unknown来源:7)at tv.airtel.xstream.PlayApplication.initAtv(PlayApplication.kt:56)at tv.airtel.xstream.PlayApplication.onCreate(PlayApplication.kt:48)at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5882)at android.app.ActivityThread.access$1100(ActivityThread.Android.app.ActivityThread$H.handleMessage(ActivityThread.java:1651)at android.os.Handler.dispatchMessage(Handler.java:106)at android.os.Looper.loop在android.app.ActivityThread.main(ActivityThread.java:6680)at java.lang.refect.Method.Invoke(原生方法)at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)原因:JAVA.lang.ClassNotFoundException:未在路径上找到类“org.jacoco.agent.rt.internal_773e439.Offline”:DexPath List[[Zip文件“/系统/框架/android.test.mock.jar”,压缩文件“/系统/框架/android.test.runner.jar”、压缩文件“/data/app/tv.airtel.xstream.tvapp.debug--k_aipq4ftZEc1641nrz7w==/base.apk”],nativeLibraryDirectories=[/data/app/tv.airtel.xstream.tvapp.debug--k_aipq4ftZEc1641nrz7w==/lib/arm,/系统/库、/产品/库]]
更多回答
Please add full of error and log of jenkins.
请添加充满错误和日志的Jenkins。
@AmirhosseinTaheri just provided the logs when app got crashed while using it on real device. No exception on jenkins
@AmirhosseinTaheri只是提供了APP在真实设备上使用时崩溃的日志。詹金斯也不例外
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
请澄清您的具体问题或提供更多详细信息,以突出您的确切需求。按照目前的写法,很难准确地说出你在问什么。
优秀答案推荐
我是一名优秀的程序员,十分优秀!