在我的电脑上使用 google cloud stt 示例应用程序时出现以下错误
Android studio:应用程序本身已经编译并运行在另一个
安卓工作室环境。
编译错误
Program type already present:com.google.protobuf.AbstractMessageLite$Builder
$LimitedInputStreamMessage{kind=ERROR, text=Program type already present:
com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream,
sources=[Unknown source file], tool name=Optional.of(D8)}
Run Code Online (Sandbox Code Playgroud)
我的操作系统是 ubuntu 16.04,Android 版本是 Android studio V 3.1。下面是一个gradle源。
build.gradle(项目)
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
} …Run Code Online (Sandbox Code Playgroud)