在gradle.properties,文件中添加内容
org.gradle.daemon=true
在build.gradle(:root)中,可以看到mavenCentral()拖慢,注释mavenCentral(),另外需要镜像
maven { url ‘http://maven.aliyun.com/nexus/content/groups/public/’ }
- Android Studio: Android Manifest doesn’t exists or has incorrect root tag
点击File / Sync project with Gradle files
- AndroidManifest.xml – specified for property ‘manifest’ does not exist
Remove this chunk of code from your build.gradle(:root) in the root directory
apply plugin: ‘com.android.application’
and
android
{
compileSdkVersion 21
buildToolsVersion “20.0.0”
defaultConfig
{
applicationId “xxx.xxx.xxx”
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName “0.5”
}
}
- How to add clean task – Task ‘clean’ not found
add below in the build.gradle(:root)
apply plugin:’base’
- Entry name ‘AndroidManifest.xml’ collided (Build failed after updating the android gradle plugin to 3.6.0)
add below in the build.gradle(:app)
android
{
packagingOptions
{
exclude
‘AndroidManifest.xml’
}
}