So I updated my app recently. It wasn't a huge update, some bug fixes, removed some ad networks and their respective Activity
and Service
entries from the manifest. Linked Fabric with Firebase which involved a few more changes. I'll detail those changed below. I updated to Android Studio 3.1, which I understand involves a change to the D8 compiler.
On my test phones, it installs fine. I had the update with my beta users for several weeks, no issue reports, I have about 25k beta users but obviously not all of them are active or use it every day. I started a staged roll out and judging from the Play Store statistics it got to about 50k install so far.
I've had 3 users report an issue. They say the Play Store says the install failed but the app installs anyways. The install takes 10 to 20 minutes. If they go back to my old version, the install works just as fast as it usually did. They go back to the new version and it again says it fails and takes 10 to 20 minutes to install. The install is successful though, they've sent me screenshots showing it is the new version.
Changes made (from diff against my last release tag):
<meta-data
android:name="com.crashlytics.ApiKey"
android:value="mykey"/>
to
<meta-data
android:name="io.fabric.ApiKey"
android:value="mykey" />
Removed activities and services like (doubt this is an issue):
<activity
android:name="com.someadnetwork.activity"
android:configChanges="keyboardHidden|orientation|screenSize"/>
Added:
compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
transitive = true
}
Went from gradle
3.0.1 to 3.1.0
Went from classpath 'com.google.gms:google-services:3.0.0'
to 'com.google.gms:google-services:3.2.0'
, it was the only way to get the Fabric stuff to work after linking to Firebase.
I tried a release without the D8 compiler and the one user that tried it of 3 that reported the issue said that install went down from 16 minutes to 10 minutes but that it still gave the failed error. Looks like D8 was the culprit. I had a different user try it and disabling D8 fixed it.
This is the error:
So what could the issue be? what else could I try? I'm suspending the update for now just in case it is affecting more people.
Thanks.
Edit: the one user who is actively helping me test this just tried my old apk and my new apk manually and he doesn't get any errors on install but the new apk takes 10 minutes to install and the old one installs quickly.
Edit: someone I know has the issue with my app so I'm sending them apks with small changes to see if I can isolate the issue. The last one I sent them was my previous version of the code, the one that doesn't have the issue, but compiled with Android Studio 3.1.1, which involved making some changes to gradle but not many. The issue is happening with that apk as well.
Edit: Looks like D8 is the culprit. I'm doing a few more tests before filing as bug report.