生成gradle失败,原因是分析设置错误我该怎么办?

时间:2018-11-25 14:54:57

标签: android-studio github gradle analytics

我将一个项目从 github 克隆到android studio 3.0.1中,并在开始构建gradle时显示错误消息:

Error:(1, 0) com/android/tools/analytics/AnalyticsSettings "Open File"

然后单击打开文件,打开 build.gradle 这是我的build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "test.myapplication"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.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'
}

我该怎么办? 感谢您的回答

0 个答案:

没有答案