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

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

enter image description here

s错误的屏幕截图

这里是来自模块的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 'com.github.miguelbcr:TableFixHeaders-Wrapper:0.2.0'
    compile 'com.android.support:appcompat-v7:26.1.0'

    compile 'com.android.support:design:26.1.0'
    compile 'com.android.support:preference-v7:26.1.0'
    compile 'com.appyvet:materialrangebar:1.4'
}

解决方法:

在将一个工作项目的git从一台计算机拉到另一台计算机之后,我遇到了同样的问题.最终解决它的是确保项目gradle文件列出google()并在jcenter()之前使用它. ProjectDir / build.gradle中的最终工作表单如下所示:

allprojects {
    repositories {
        google()
        jcenter()
    }
}

我正在使用Gradle 4.4和Android Studio Gradle插件3.1.3

为什么它在一台计算机上而不在另一台计算机上工作,我不知道.

相关文章

https://www.osgeo.cn/qgis-tutorial/overview.html https:...
设计方案是工程建设最关键的环节,也是影响城市规划的基本因...
BIM与GIS的区别与联系http://www.bimcn.org/cjwt/2018111516...
成功有感之给年轻人的10个忠告1、努力工作要努力,随随便便过...
鉴于陆地多边形为ShapelyMultiPolygon,我想找到代表例如多边...
背景与宣言传统的GISC/S开发已经很被别人不屑了,在时代的洪...