一.AS Gradle进行Sync时很慢或者failed
1.找到Build.gradle,将其中的代码替换成下面的阿里云的链接,再等待一会儿即可Sync成功。
代码如下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
// 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
}
二.AMD cpu 运行AS中的虚拟设备failed
-
确保BOIS中虚拟化开启。
-
确保Windows更新中的配置如下图:
-
在AS setting中将支持AMD cpu的模拟器驱动勾上,如下图所示: