Unable To Find Method 'com.android.tools.r8.version.getversionstring()ljava/lang/string;'
Solution 1:
The issue is that you have a fixed version dependency on R8 1.3.52:
classpath ('com.android.tools:r8:1.3.52' ) { transitive false }
And the com.android.tools.r8.Version
method
public String getVersionString()
is only present in the R8 1.4 versions and above.
I assume that you are using a fixed version of R8 due to a bug fix in that version. However that should also be fixed in the latest version, so I suggest that you remove the fixed R8 version dependency and use what is shipped with Android Studio.
Solution 2:
I solved it. From android studio 3.4 R8 versioning is added in android studio. So i did some changes in my build.gradle file and gradle.properties file
In my app level build.gradle file in release section I added one line
useProguard false
& in gradle.properties file
android.enableR8=true
so it will use R8 Versioning to create my APK.
Incase if you dont want to use R8 versioning and want to continue with proguard then make
android.enableR8=false //in gradle.properties file
Hope this will help someone
Post a Comment for "Unable To Find Method 'com.android.tools.r8.version.getversionstring()ljava/lang/string;'"