I am trying to use ionic in windows 8. But I am getting error adding android platform. Please check the image.
Can you please help me in this?
Regards,
Naveen
I am trying to use ionic in windows 8. But I am getting error adding android platform. Please check the image.
Can you please help me in this?
Regards,
Naveen
Well the reason is right there on the screenshot. It seems you haven’t installed the JDK (you can get it from the oracle site). Without the JDK you probably didn’t install the Android SDK either. Have a look at the platform guide from the cordova docs. All requirements are listed there.
Hi,
Thanks for the quick response. I have installed the latest versions of JDK, JRE & Android SDKs. Could there be any other reason?
Regards,
Naveen
The environment variables are not set (JAVA_HOME in your case). See this stack overflow question. You can set the environment variables in the windows control panel. Be aware, that you have to close the console window after changing them, since they are loaded only during the start of the console application.
Thank you once again. I have set JAVA_HOME variable but still I am getting some errors. Can you please help?
Regards,
Naveen
You need to do the same thing for ant. Install it and add it to your path !
I have done that for ANT too. But still I have errors. Can you please help?
Regards,
Naveen
A Google search tells it’s probably a ant problem again but it’s weird that the error is different.
You can still check if ant is working :
ant -h
Also, you have to include the apache-ant/bin directory in the path. (don’t forget to unlog/log in)
Can’t really help much more
Hi,
Thanks for the help. Looks like I have crossed all errors. But there is a last problem I guess. When I run android emulator, I am getting stuck at the below image. Can you please help?
Regards,
Naveen
Does it work with a real device? The emulator is slow as hell anyway. On my dev system the emulator fails to start, but deployments to a real device are just fine.
Thank you for your support. Yes, it works with real device.
Regards,
Naveen
Hi,
I am trying test tabs app by developing multiple times with various features. But the build is replacing old apps on real device. May I know how I can overcome this?
Regards,
Naveen
You can change the id in config.xml and it should work. I don’t know if there’s a better way to do it though. Like this, with org.apache.apptest
as my app id :
<widget id="org.apache.apptest" version="0.9.3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
(And I don’t use the Android emulator so I can’t help you sorry)
Thank you. That works