每当我尝试在Android Studio 3.1.2中运行程序时,我都会收到此错误.
已存在的程序类型:com.google.android.gms.common.util.VisibleForTesting消息{kind = ERROR,text =程序类型已存在:com.google.android.gms.common.util.VisibleForTesting,sources = [未知来源文件],工具名称= Optional.of(D8)}
我的gradle模块应用程序:
buildscript {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com" // Google's Maven repository
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:3.2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Run Code Online (Sandbox Code Playgroud)
}
allprojects {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
maven {
url "https://maven.fabric.io/public"
}
}
Run Code Online (Sandbox Code Playgroud)
}
task clean(type: Delete) {
delete rootProject.buildDir
Run Code Online (Sandbox Code Playgroud)
}
这是我的Gradle模块应用程序
apply …
Run Code Online (Sandbox Code Playgroud)