谷歌语音到文本api gradle同步错误

时间:2018-08-11 01:15:25

标签: android speech-to-text

i遵循以下准则:https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries

我由android studio开发

当我在gradle中使用以下行并进行同步时

implementation'com.google.cloud:google-cloud-speech:0.53.0-alpha'
  

无法解决':app @ debug / compileClasspath'的依赖关系:无法解决com.google.cloud:google-cloud-speech:0.53.0-alpha。   打开文件   显示详细信息

     

无法解决':app @ debugAndroidTest / compileClasspath'的依赖关系:无法解析com.google.cloud:google-cloud-speech:0.53.0-alpha。   打开文件   显示详细信息

     

无法解析':app @ debugUnitTest / compileClasspath'的依赖关系:无法解析com.google.cloud:google-cloud-speech:0.53.0-alpha。   打开文件   显示详细信息

     

无法解决':app @ release / compileClasspath'的依赖关系:无法解析com.google.cloud:google-cloud-speech:0.53.0-alpha。   打开文件   显示详细信息

     

无法解析':app @ releaseUnitTest / compileClasspath'的依赖关系:无法解析com.google.cloud:google-cloud-speech:0.53.0-alpha。   打开文件   显示详细信息

gradle项目同步失败。什么问题。

下面是应用gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "danggocommunications.danggoalpha"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 2
        versionName "1.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    /*기본*/
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.0'
    implementation 'com.android.support:support-vector-drawable:27.1.1'
    implementation 'com.android.support:support-v4:27.1.1'

    /*칩,그리기*/
    implementation 'com.beloo.widget:ChipsLayoutManager:0.3.7@aar'
    implementation 'com.github.bumptech.glide:glide:4.7.1'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'

    /*카드*/
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'

    /*파이어베이스*/
    implementation 'com.google.firebase:firebase-firestore:16.0.0'
    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-auth:15.1.0'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.google.firebase:firebase-functions:15.0.0'

    /*앱 크기 64K 이상*/
    implementation 'com.android.support:multidex:1.0.3'

    /*유투브*/
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation files('libs/YouTubeAndroidPlayerApi.jar')

    /*페이스북*/
    implementation 'com.facebook.android:facebook-login:[4,5)'

    /*카카오*/
    implementation group: 'com.kakao.sdk', name: 'usermgmt', version: project.KAKAO_SDK_VERSION

    /*인앱 결재*/
    implementation 'com.android.billingclient:billing:1.1'

    // 메인 바텀 네비게이션 라이브러리
    implementation 'com.github.ittianyu:BottomNavigationViewEx:1.1.9'

    // speech to text api
    implementation 'com.google.cloud:google-cloud-speech:0.53.0-alpha'

}

apply plugin: 'com.google.gms.google-services'

下面是项目gradle

buildscript {

    repositories {
        google()
        jcenter()
    }
    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
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven {
            url 'https://maven.google.com' // Google's Maven repository
        }
        maven {
            url 'http://devrepo.kakao.com:8088/nexus/content/groups/public/'   //kakao's maven repository
        }
        maven {
             url "https://jitpack.io"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案
相关问题