构建失败,confugre构建失败

问题描述 投票:0回答:1

我是一个初学者。我尝试创建一个新项目,但是构建失败并且无法解决,有人可以告诉我this picture]中出了什么问题吗?

apply plugin: 'com.android.application' android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.example.hossein.myshgop"
    minSdkVersion 15
    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-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
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'}

我是一个初学者。我尝试创建一个新项目,但是构建失败,但是我无法解决,有人可以告诉我这张图片有什么问题吗?应用插件:'com.android.application'android {...

android gradle build build.gradle configure
1个回答
0
投票

似乎您的PC的互联网连接出现问题。请检查互联网连接。 Gradle需要正确的Internet连接。

© www.soinside.com 2019 - 2024. All rights reserved.