The issue is in the build tool chain (gradle, d8/r8). Problem is fixed in Android Studio 3.4 Beta 1
with gradle 3.4.0-beta01
.
Or a workaround solution for this issue can be used by locally updating the top-level build.gradleconfiguration for your project:
buildscript {
repositories {
maven {
url 'http://storage.googleapis.com/r8-releases/raw' // ADD THIS.
}
}
dependencies {
classpath 'com.android.tools:r8:1.3.55' // ADD THIS. Must be before the Gradle Plugin for Android.
classpath 'com.android.tools.build:gradle:3.3'
}
}
Once the next point release of Android Gradle Plugins takes place these changes can be removed.
如上描述,这是Android Studio3.3的bug,在工程根build.gradle文件中添加上述配置即可