Hi Team, I am facing the below issue when using Jacoco in multi user android system.
Logs: 09-22 07:36:45.963 18134 18134 E AndroidRuntime: java.lang.ExceptionInInitializerError 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at java.lang.Class.newInstance(Native Method) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:1007) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.Instrumentation.newApplication(Instrumentation.java:992) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.LoadedApk.makeApplication(LoadedApk.java:832) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5449) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.ActivityThread.-wrap2(ActivityThread.java) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1555) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6194) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:911) 09-22 07:36:45.963 18134 18134 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:801) As long as I am using the application in android user0 -> It works fine When I switch to android user1 -> The application instance will be spawned in user1's context. This makes the user1 instance try to capture the port which already used by user0 instance of the same application -> This crashes the application. Open Queries: 1. Can the runtime exception be suppressed or handled? 2. Is it possible to provide a secondary port of the first port is taken ? Any help will be appreciated. Thanks, Amarjit VS -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/dbf14939-05d7-4233-9129-c8b94ecb4ab5n%40googlegroups.com.
