找到了多个文件,这些文件具有与操作系统无关的路径“ javax / annotation / CheckReturnValue.java”

时间:2018-11-29 16:54:42

标签: android-studio google-api youtube-data-api android-youtube-api

构建应用后出现此错误:

  

使用操作系统独立路径'javax / annotation / CheckReturnValue.java'找到多个文件

为了分析问题,我附上了我的gradle构建文件:

apply plugin: 'com.android.application'

    android {
        compileSdkVersion 28
        buildToolsVersion "28.0.3"
        defaultConfig {
            applicationId "com.search.youtube"
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            multiDexEnabled true
            minSdkVersion 26
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        productFlavors {
        }
    }

    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:cardview-v7:28.0.0'
        implementation 'com.android.support:recyclerview-v7:28.0.0'

        androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        androidTestImplementation 'junit:junit:4.12'
        implementation 'com.squareup.picasso:picasso:2.5.2'
        implementation('com.google.api-client:google-api-client-android:1.23.0') {
            exclude group: 'org.apache.httpcomponents'
        }
        implementation('com.google.apis:google-api-services-youtube:v3-rev192-1.23.0') {
            exclude group: 'org.apache.httpcomponents'
        }
        implementation files('libs/jsr305-1.3.9.jar')
        implementation files('libs/YouTubeAndroidPlayerApi.jar')
        implementation files('libs/gson-2.1.jar')
    }

我缺乏主意。需要解决这个问题吗?

0 个答案:

没有答案