Skip to content Skip to sidebar Skip to footer

Why Can An App Run In Real Device By Android Studio And Failed By Install?

I run an app in a real device (Android 7.0 Table) from Android Studio, it's OK. Now I create a APK file of the app, then I install it on my real device, finish I run the app. I get

Solution 1:

I feel like proguard/R8 had removed info.dodata.voicerecorder.model.MVoice class because I don't see a .debug postfix in the package name, I'm assuming that you're installing the release variant with minify enabled. Try to keep your model classes using following, or disable minify to find out if it's the cause or not

-keep public class info.dodata.voicerecorder.model.** 
{
  public protected *;
}

Post a Comment for "Why Can An App Run In Real Device By Android Studio And Failed By Install?"