ERROR汇总
[2014-01-10 11:25:55 - S01_E06_View] Launching a new emulator with Virtual Device 'Android_4.0.3'
[2014-01-10 11:26:27 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2014-01-10 11:26:27 - Emulator] WARNING: SD Card image already in use: C:\AVD\.android\avd\Android_4.0.3.avd/sdcard.img
[2014-01-10 11:26:27 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2014-01-10 11:26:33 - S01_E06_View] New emulator found: emulator-5556
Description:已经打开了一个AVD,版本也符合但是报错,重开了另一个相同版本的AVD
Solution:实际只需要把这个文件(AVD\.android\avd\Android_4.0.3.avd/sdcard.img)删掉即可
java.lang.RuntimeException: Unable to start activity ComponentInfo {com.annaivsu.s01_e06_view/com.annaivsu.s01_e06_view.MainActivity}: android.view.Inflate Exception:Binary XML file line #15:Error inflating class BUTTON
Solution: activity_main.xml中的<Button .../>写成了<BUTTON .../>
在cmd中输入adb shell,或push 文件到sdcard中显示“not found device”
键入如下两行命令:
adb kill-server
adb shell
检查虚拟机是否正常启动,或是否开启调试模式