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
This was working on Android 8, but after the upgrade it's not anymore:
I am getting this stacktrace on a custom device:
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at android.os.Environment.getExternalStorageState(Environment.java:1026)
at ch.qos.logback.core.android.AndroidContextUtil.getMountedExternalStorageDirectoryPath(Unknown Source:0)
at ch.qos.logback.core.android.AndroidContextUtil.setupProperties(Unknown Source:14)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(Unknown Source:12)
at org.slf4j.impl.StaticLoggerBinder.init(Unknown Source:7)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(Unknown Source:20)
at org.slf4j.impl.StaticLoggerBinder.getSingleton(Unknown Source:0)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362)
at io.devicefarmer.minicap.provider.BaseProvider.<clinit>(BaseProvider.kt:44)
at io.devicefarmer.minicap.Main$Companion.main(Main.kt:62)
at io.devicefarmer.minicap.Main.main(Unknown Source:2)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:338)
Describe the bug
This was working on Android 8, but after the upgrade it's not anymore:
I am getting this stacktrace on a custom device:
This is from my build.gradle:
And here a link to the failing line:
https://github.com/DeviceFarmer/minicap/blob/master/experimental/app/src/main/java/io/devicefarmer/minicap/provider/BaseProvider.kt#L44
Any ideas how we could fix this, or at least handle gracefully?
Reproduction
https://github.com/DeviceFarmer/minicap/blob/master/experimental/
Logs
No response
logback-android version
2.0.0
OS Version
Android 10
What logback configuration are you using? (logback.xml or Java/Kotlin code)
Validations
The text was updated successfully, but these errors were encountered: