Fui seguindo a sequencia de comandos do exercício e obtive o seguinte erro:
C:\Users\henrique\garconapp>cordova platform add android Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: or.hperuchi.garconapp Name: Gar_onete_S__de_Cenoura Activity: MainActivity Android target: android-23 Android project created with cordova-android@5.1.1 Installing "cordova-plugin-whitelist" for android
This plugin is only applicable for versions of cordova-android gr eater than 4.0. If you have a previous platform version, you do not need this plugin since the whitelist will be built in.
C:\Users\henrique\garconapp>cordova run anrdoid Error: Unknown platforms: anrdoid
C:\Users\henrique\garconapp>cordova run android Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. Your JAVA_HOME is invalid: C:\Program Files\Java\jdk1.8.0_91\bin
C:\Users\henrique\garconapp>cordova run android Error: Failed to run "java -version", make sure that you have a JDK installed. You can get it from: http://www.oracle.com/technetwork/java/javase/downloads. Your JAVA_HOME is invalid: C:\Program Files\Java\jdk1.8.0_91\bin
C:\Users\henrique\garconapp>java -version java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b15) Java HotSpot(TM) Client VM (build 25.91-b15, mixed mode, sharing)
C:\Users\henrique\garconapp>