Android Studio开发笔记
16lz
2021-01-23
工欲善其事,必先利其器。
来分享下一些tips吧。
不打开上次的开发项目
A:在setting里面搜索Reopen
里面有Reopen last project on startup
不勾就行了
屏幕方向不对
A:建立AVD的时候在"Edit Android Virtual Device (AVD)"里面"Hardware keyboard present"不要勾选上.这个是AVD的bug.目前只能这么解决
告别呆逼虚拟机
A:1安装intel镜像;2安装haxm;3编辑AVD.正确的结果是运行设备时,提示:HAX is working and emulator runs in fast virt mode
PS:
http://www.cnblogs.com/beginor/archive/2013/01/13/2858228.html
https://software.intel.com/en-us/blogs/2014/10/20/how-to-ensure-you-are-using-intel-haxm-for-android-emulator
启动AVD错误
Emulator] emulator: ERROR: Unable to load Vm from snapshot. The snapshot has been saved for a different hardware configuration.
A:删除该AVD的snapshots.img文件或者禁用snapshot