2.调整你的环境变量
将以下路径添加到 PATH-Enviroment 变量
[Path to CMake]\bin
[Path to Git]\bin
[Path to SDK]\tools
[Path to SDK]\platform-tools
[Path to NDK]
[Path to ANT]\bin
[Path to MinGW]\bin
[Path to MinGW]\msys\1.0\bin
[Path to Java jre]\bin
[Path to Java jdk]\bin
确保使用反斜杠(\
)并用分号(;
)分隔路径!
添加两个新的环境变量
名称:ANDROID_NDK
价值:[Path/to/NDK]
(例如 C:/Android/NDK
)
确保你使用 forwardslashes(/
)!
名称:JAVA_HOME
价值:[PATH\to\jdk]
(例如 C:\Program Files (x86)\Java\jdk1.7.0_55
)
确保你使用反斜杠(\
)!