An error occurred while adding a platform in the project after installing Cordova using Nodejs:
The reason is that there is no environment variable
Using PHONEGAP development not only with the JDK environment variables, but also with the ADT environment variables, this error is shown to be not with the ADT environment variable caused
Later on the Internet to find information (a lot of incomplete), summed up the solution:
"First" configuration environment variable (green text to mark the code, path for its own SDK path)
Android_home = D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk
Android_platform_tools = D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk\platform-tools
Android_tools = D:\Android\adt-bundle3\adt-bundle-windows-x86-20131030\sdk\tools
Finally add in the path variable ( It is important to add all 3 ):;%android_home%;%android_platform_tools%;%android_tools%
"Second" restart cmd
After the variable is finished, the last important step: Close the cmd window above the error, reopen the knock command (before because it did not close, and lead to waste a lot of time, and Baidu came out of the information did not say close this window reopened)
If you see as the results show that we succeeded! If you have any questions, please reply to the discussion.
Reference:
http://stackoverflow.com/questions/26356359/ Error-android-home-is-not-set-and-android-command-not-in-your-path-you-must-ful
http://my.oschina.net/u/1266171/blog/360299
Http://www.tuicool.com/articles/F7RJNf
Android_home is isn't set and "Android" command not in your path resolves