小编sid*_*d.s的帖子

无法解析常见的打开文件gradle.build

在过去的6个小时里,我一直在努力解决这个错误,我无法解决.我直接从nextgis github导入了这个项目.请说明什么是错的,以及如何纠正它.这里'在此输入图像描述是错误的屏幕截图

这里是来自模块的build.gradle文件,它包含错误

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion '27.0.3'
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 26
        versionCode 37
        versionName '2.5.7.1'
        buildConfigField "String", "CLIENT_ID", "\"Im6GFdPPuPM09BnvFb3EacFZyq8TpRBSAAex7JDZ\""
    }
    productFlavors {
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }
}

repositories {
    mavenCentral()
    maven {url "https://maven.google.com"}
    maven {
        url  "http://dl.bintray.com/krazykira/maven"
    }

    google()
    jcenter()

}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile project(':maplib')
    compile 'com.4ert:easypicker:0.2.12'
    compile 'com.github.yukuku:ambilwarna:2.0.1'
    compile 'com.jzxiang.pickerview:TimePickerDialog:1.0.1'
    compile …
Run Code Online (Sandbox Code Playgroud)

gis android android-studio build.gradle android-gradle-plugin

19
推荐指数
1
解决办法
6665
查看次数