Android开发问题收集之一

本文针对Android开发过程中遇到的两个典型问题提供了详细的解决方案。一是关于资源匹配错误的问题,二是模拟器启动失败的问题,涉及API版本调整及硬件加速配置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 ---


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值