Open mtotschnig opened 2 years ago
I have started seeing similar crashes on Android 8.1 devices in an app of mine. Also version 1.0.0 of the library.
@mtotschnig did you manage to find the cause of this?
@dabarnard The crash is quite easy to reproduce. From adb call (with your application_id)
adb shell am start -n "{application_id}/com.vmadalin.easypermissions.components.TestSupportFragmentActivity"
The cause is that references to this activity along with two others that exist only for tests, are erroneously added to the AndroidManifest that gets merged into your production APK.
Basic Information
Device type: GIONEE S10L OS version: Android 9 EasyPermissions version: 1.0.0
Describe the problem
I have got one crash report from crashlytics with the following stacktrace.
I have no idea if the user uses some tool that inspects the APK and does some weird stuff with it, or if this is a legit use of my app and the OS screws up. In any case, it might be safer to move the references to test activities out of the main AndroidManifest into the test source set.