0%

安装Android-Studio-IDE

安装Android-Studio-IDE

标准安装,选择自定义,提示无SDK点cancel

先删除用户文件夹里的.gradle文件夹

C:\Users\用户\.gradle

修改项目目录下的build.gradle

C:\Users\用户\AndroidStudioProjects\MyApplication\build.gradle

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.71'
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.6.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
maven{ url = "http://maven.aliyun.com/nexus/content/groups/public/" }
google()
jcenter()

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

之后点击Event log里面的Select a JDK from the File System

Android NDK location --> Download --> NDK --> Accept

参考

安装流程

ERROR: Cause: jcenter.bintray.com:443 failed to respond

环境变量

欢迎关注我的其它发布渠道