ionic-team / ionic-lab-issues

Issues to track for the Ionic Lab project.
4 stars 2 forks source link

error installing android platform #73

Open tiandao-dongguan opened 9 years ago

tiandao-dongguan commented 9 years ago

ionic project can create success,but can‘t install anroid platform. and install anroid platform success from windows cmd,why?

MahapalaMultimedia commented 8 years ago

yeah,, same here... why??

Gh0st971 commented 8 years ago

same problem for me.

alexeyrv commented 8 years ago

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

alexeyrv commented 8 years ago

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

Gh0st971 commented 8 years ago

i resolved installing node.js

acmbc68 commented 8 years ago

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?

Matt2012 commented 8 years ago

+1

martinezbel commented 8 years ago

same problem. even with node.js not possible to install android

KaraKong commented 8 years ago

ionic project can create success,but can‘t install anroid platform. and install anroid platform success from windows cmd,why?

OmywishO commented 7 years ago

image ionic project can create success and why install android so lang time? installing 9 hours

terrill021 commented 7 years ago

i am getting the same error, how nows how to solve this?

MahapalaMultimedia commented 7 years ago

make sure your enviromental variables is correct.

terrill021 commented 7 years ago

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.