I created my first project on android studio2. But when I press green triangle button and create a virtual device (Nexus4) an error came:
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>
I only added this code:
repositories {
maven { url 'http://repo1.maven.org/maven2' }
}
To the android block in build.gradle(Module:app), because of another error:
(failed to resolve junit)
I also get a lot more errors at Messages Gradle Build: http://pastebin.com/3K30mApG
What is the problem and how to fix it?
转到app.gradle
和更改buildToolsVersion
到buildToolsVersion: "23.0.2"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.