Android开发问题收集之一
1 Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'
解决方法:1 首先在SDK Manager 里查看确保相关的android api相关的都安装
2 最大的可能就是api版本不对,可能api版本太低,右击项目,属性,android,选择高些版本的api,应用后clean下.
该方法适合于此系统问题
2 emulator: ERROR: x86 emulation currently requires hardware acceleration!
emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
模拟器启动不起来!
报错信息告诉我说是 HAXM没有开,可是“HAXM”到底是什么呀?
这是Inter官网告诉我的,作用是管理硬件加速的,估计是用了这个东西模拟器就能告别Eclipse时代的龟速。
你也可以在Inter官网下载这个HAXM,当然Android SDK已经集成了这个软件,你需要做的就是找到他,然后安装它就是了。
他的位置放在这个目录下:
AppData\local\android\sdk\extras\intel\hardware-accelerated-execution-manager
当然你的位置可能会不一样。
如果问题就这样解决了,那也太小儿科了吧;当我双击安装,问题又来了:安装不成功,(有的电脑是可以安装成功的)
this computer meets the requirements for haxm but intel virtualization technology(VT-x) is not turned onHAXM cannot be installed until VT-x is enable
please refer to the intel HAXM documentation for more information
好吧,继续寻求帮助Inter官方的教程有这样一段话:连接地址:https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
Intel VT-x not enabled
In some cases, Intel VT-x may be disabled in the system BIOS and must be enabled within the BIOS setup utility. To access the BIOS setup utility, a key must be pressed during the computer’s boot sequence. This key is dependent on which BIOS is used but it is typically the F2, Delete, or Esc key. Within the BIOS setup utility, Intel VT may be identified by the terms "VT", "Virtualization Technology", or "VT-d." Make sure to enable all of the Virtualization features.
意思是如果安装失败了,那多半是BIOS里面的“Virtualization Technology”选项没有打开,去BIOS里面打开就可以了。
重新启动安装,就成功了!用命令查看下
cmd> sc query intelhaxm
看下是否在运行,如图:
--- end ---