Android 开发环境问题解决方案集

Q : 无法启动Android Virtual Device
invalid command-line parameter: Files.
Hint: use '@foo' to launch a virtual device named 'foo'.

A 1 : There is currently a problem with R12 where the SDK location cannot contain any spaces.
The default installation location is: C:\Programme Files(x86)\Android\android-sdk. They are currently fixing the problem but you can currently work around it by changing the SDK location path in eclipse to C:\PROGRA~2\Android\android-sdk.

If you are running 32-bit Windows, change the path to C:\PROGRA~1\Android\android-sdk.

A2 : I'd suggest creating a directory junction named C:\Android pointing to the actual C:\Program Files (x86)\Android\android-sdk-windows\:
MKLINK /J C:\Android C:\Program Files (x86)\Android\android-sdk-windows

and then setting the newly created junction as SDK Location for your Eclipse ADT Plugin (Eclipse menu\ Window\ Preference\ Android). This might help for a number of tools/ plugin too that have problems with spaces in paths.

猜你喜欢

转载自reddog.iteye.com/blog/1175906