Open tiandao-dongguan opened 9 years ago
yeah,, same here... why??
same problem for me.
Same problem. Ionic Lab starts with administrator rights. Status for "Platform Android" is green color "Installed". Emulate or Run failed.
Thanks for help in advance. Logs below:
No version supplied. Retrieving version from config.xml... Adding android project... Running command: cmd "/s /c "C:\Users\Admin.cordova\lib\npm_cache\cordova-android\4.0.2\package\bin\create.bat --cli D:\Development\Projects\Tabs1\platforms\android com.ionicframework.tabs1475355 Tabs1"" Creating Cordova project for the Android platform: Path: platforms\android Package: com.ionicframework.tabs1475355 Name: Tabs1 Activity: MainActivity Android target: android-22 Copying template files... Android project created with cordova-android@4.0.2
Command finished with error code 0: cmd /s /c "C:\Users\Admin.cordova\lib\npm_cache\cordova-android\4.0.2\package\bin\create.bat --cli D:\Development\Projects\Tabs1\platforms\android com.ionicframework.tabs1475355 Tabs1" Generating config.xml from defaults for platform "android" Calling plugman.prepare for platform "android" Preparing android project Processing configuration changes for plugins. Writing out cordova_plugins.js... Wrote out Android application name to "Tabs1" This app does not have launcher icons defined Wrote out Android package name to "com.ionicframework.tabs1475355" Running command: "C:\Program Files\nodejs\node.exe" D:\Development\Projects\Tabs1\hooks\after_prepare\010_add_platform_class.js D:\Development\Projects\Tabs1 add to body class: platform-android
Command finished with error code 0: C:\Program Files\nodejs\node.exe D:\Development\Projects\Tabs1\hooks\after_prepare\010_add_platform_class.js,D:\Development\Projects\Tabs1 saving android@4.0.2 into platforms.json
Alex
BTW: Run makes issue with message: "Error: cmd: Command failed with exit code 2 Error output: ERROR: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions."
It seems like Android "Installed" status - fake. Is there some documetation how manually install and Ionic Lab can use it?
Alex
i resolved installing node.js
Not here - have node.js (i.e. can run node straight from windows cmd line) and still cant install Android - anyone have any clue as to why or where there may be some kind of log file so we can at least try to figure out WHY it can't install the android platform?
+1
same problem. even with node.js not possible to install android
ionic project can create success,but can‘t install anroid platform. and install anroid platform success from windows cmd,why?
ionic project can create success and why install android so lang time? installing 9 hours
i am getting the same error, how nows how to solve this?
make sure your enviromental variables is correct.
I have founded the mistake, it was in the router providers states, i had someyhing like this:
.state('newTrip', { url: '/newTrip', templateUrl: "../views/newtrip.html", controller: 'ctrlNewTrip' })
I have changed to this;
.state('newTrip', { url: '/newTrip', templateUrl: "views/newtrip.html", controller: 'ctrlNewTrip' })
that solved it. The mistake was in that in the navigator worked correctly, but in the movil app no.
ionic project can create success,but can‘t install anroid platform. and install anroid platform success from windows cmd,why?