Android开发跳坑记录

本文主要记录在Android开发中遇见的一些问题,以及解决方法。

2015.12.01

1、adb.exe 端口被占用

解决:

http://blog.csdn.net/xiaanming/article/details/9401981

http://blog.csdn.net/zeng_zhi_1991/article/details/48318495

2、emulator: ERROR: Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration.

模拟器:错误:无法从虚拟机上加载快照,快照已被保存为一个不同的硬件配置。(存档错误无法读取)

解决办法:
 
Android Virtual Device Manager -> delete AVD -> new AVD
 
重新创建个AVD,解决。

摘自:http://blog.csdn.net/weiming8517/article/details/8099713

3 、Gradle: The filename, directory name, or volume label syntax is incorrect

  工具:文件名,目录名或卷标语法不正确

解决办法:将sdk下的build-tools19.1.0dx.bat文件中的以下内容修改为:set java_exe=%JAVA_HOME%java.exe

set java_exe=
if exist    "%~dp0..	oolslibfind_java.bat" call    "%~dp0..	oolslibfind_java.bat"
if exist "%~dp0....	oolslibfind_java.bat" call "%~dp0....	oolslibfind_java.bat"
if not defined java_exe goto :EOF
原文地址:https://www.cnblogs.com/ylhssn/p/5009856.html