How to install cordova(3.0) manually -
I downloaded Apache Cordova 3.3.0. It has a Cordova-Android sub folder, I've unzipped it. How do I copy it into my Android project? I can not find jar file and xml And how to manually add this project to the plugin?
I do not want a command line approach because my company does not allow it to be downloaded.
Any help about this will be appreciated.
I'm not sure that using Cordova without CLI would be very easy and maybe you could create phonegap (Nothing to download on your computer)
Anyway, we see what we can do ...
You do not say which platforms you are targeting, So I will try to explain what I know. Android
First of all, - set up java jdk (and java_homem env var)
- Android SDK manager (like Cordova 3.3.0 , API 1) Install the latest platform tool
- Install the eclipse ADT plugin (or eclipse included in the Android SDK install)
Check the full list.
then install Cordoba
then you load your cordova source zip and remove it from anywhere in your hard drive (can be a temporary folder ).
In the extracted folder, you will get a zip for each platform, so for Android, we have Cordova - Android.zip.
Remove this folder from anywhere in your user home folder and modify your path to include cordova-android \ bin folder
.
Now you have access to the Cordova tool that you can run from the command line (with lots of CLI) (if you are using a window, then use .bat files):
-
check_reck
: To check that every dependency is found on your computer -
android_sdk_version
: to run it Run to install Android API (should work correctly for Cordova 3.3) -
Update
: A Mou Use this to update the Prada project to the new version of Cordova (so I think you will not need it at all) -
create
: create a new Cordova project Use it for Regardless of the run of cordova create
, check the rationality, works with the same . Create a new project to create a new Cordova project
cordova-android \ bin folder
. check_reck
: To check that every dependency is found on your computer android_sdk_version
: to run it Run to install Android API (should work correctly for Cordova 3.3) Update
: A Mou Use this to update the Prada project to the new version of Cordova (so I think you will not need it at all) create
: create a new Cordova project Use it for Regardless of the run of cordova create
, check the rationality, works with the same . Create a new project to create a new Cordova project Run the following commands (remember, make .bat if you are on the window):
create myapp Com.mycompany.myapp MyApp
You just created the MyApp application in the Map folder.
Import the project into eclipse
In Eclipse, go to the new project wizard and select "Android project from existing code" and set the root directory in the root of the project that was created earlier. Please.
You should see two projects:
- MyApp: Your App
- MyApp-CordovaLib: In Cordova 3.3, the Cordova Corps is no longer in a jar This is in a different project.
Now you can use Eclipse to run / debug the project or create a release APK.
Customize your project
- Customize your html5 appp in one Ssets / www folder
- Change the Android specific settings in the file AndroidManifest.
- Change the Cordova settings in file res / xml / config.xml (such as Attributes Plugins < / H2>
With Cordova 3 you will need to install plug-ins for each API, so plugins Without the need, you will not be able to call any of the original APIs and are limited to the HTMLMI API.
Normally you use Cordova CLI, or plugin CLI (should also be installed with NPM) Install the plug-in, but here you have to do anything manually.
P> As I'm running from time to time, I will cover this topic later, if you need it Or if other people Ask for.
Comments
Post a Comment