Using Android Studio 3.0 Beta 5, use Project by default with Instant Apps.
To enable Proguard, I just installed all of the Build.Gradle (application, base and function) using
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
When compiling the application works fine. However, compiling Instant Apps is a mistake.
java.lang.RuntimeException: Unable to instantiate Activity ComponentInfo {com.elyeproj.myapplication / com.elyeproj.myapplication.feature.MainActivity}: java.lang.ClassNotFoundException: could not find com.elyeproj.myapplication.feature.MainActivity in any class atom loader or parent class loader
It seems that proguard just does not check dependencies between functions. How can this be solved?
Elye source
share