1、项目路径里不要有中文名,否则会报错,具体如下:
org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id ‘com.android.
2、错误:NDK is missing a “platforms” directory.
解决方法:在build.gradle(project)里面修改如下:加入google()
buildscript {
repositories {
jcenter()
google() //加入这个
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google() //加入这个
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
3、未完待续。。。