Gradle build problem

Hi,
i would like to use Google speech recognition, and Google Cloud Speech in one program.
I get the following error:
Error: Program type already present: com.google.api.AnnotationsProto

Here is my gradle file:

apply plugin: ‘com.android.application’
apply plugin: ‘com.google.protobuf’

android {
compileSdkVersion 29
buildToolsVersion “28.0.3”
defaultConfig {
applicationId “com.sbxx.james”
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName “1.0”
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
}

def grpcVersion = ‘1.4.0’

protobuf {
protoc {
artifact = ‘com.google.protobuf:protoc:3.7.1’
}
plugins {
javalite {
artifact = “com.google.protobuf:protoc-gen-javalite:3.0.0”
}
grpc {
artifact = “io.grpc:protoc-gen-grpc-java:${grpcVersion}”
}
}
generateProtoTasks {
all().each { task ->
task.plugins {
javalite {}
grpc {
// Options added to --grpc_out
option ‘lite’
}
}
}
}
}

dependencies {
implementation fileTree(dir: ‘libs’, include: [’*.jar’])
implementation (“io.grpc:grpc-okhttp:${grpcVersion}”)
implementation (‘javax.annotation:javax.annotation-api:1.3.2’)
implementation (‘com.android.support:appcompat-v7:28.+’)
implementation (‘com.android.support:design:28.+’)
implementation (‘com.google.cloud:google-cloud-texttospeech:0.97.0-beta’)
implementation (‘net.sourceforge.argparse4j:argparse4j:0.8.1’)
implementation(‘com.google.auth:google-auth-library-oauth2-http:0.7.0’)
}

I am using gradle Android plugin 5.1.1. For some strangeness, a friend of mine is able to compile and run the program without any problems. I am not sure how to proceed from here, as i wasnot able to find any solution for this issue.

Hope, someone can help me.

If you need anything else for reproducing the issue, please let me know.

Many thanks,

Matthias