我在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&os=Windows&version=25.1.7.0&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
问题是什么以及如何解决?
答案 0 :(得分:0)
转到app.gradle
并进行更改
buildToolsVersion
至buildToolsVersion: "23.0.2"