无法在模拟器中启动AVD,Gradle将无法构建

时间:2016-07-02 14:04:24

标签: java android gradle android-emulator

我在android studio2上创建了我的第一个项目。但是当我按下绿色三角形按钮并创建虚拟设备(Nexus4)时出现错误:

Cannot launch AVD in emulator.

Output

Hax is enabled

Hax ram_size 0x60000000

HAX is working and emulator runs in fast virt mode.

console on port 5554, ADB on port 5555

emulator: WARNING: UpdateCheck: Failure: No error

none.xml:1: parser error : Extra content at the end of the document

emulator: WARNING: UpdateCheck: failed to get the latest version, skipping check (current version '25.1.7'6ce&amp;os=Windows&amp;version=25.1.7.0&amp;coreVersion=qemu2%202.2.0">Found</a>

我只添加了这段代码:

repositories {
    maven { url 'http://repo1.maven.org/maven2' }
}

到build.gradle(Module:app)中的android块,因为另一个错误:

(failed to resolve junit)

我还在Messages Gradle Build中遇到了更多错误:http://pastebin.com/3K30mApG

问题是什么以及如何解决?

1 个答案:

答案 0 :(得分:0)

转到app.gradle并进行更改 buildToolsVersionbuildToolsVersion: "23.0.2"