Hi there Matthew, thank you for the excellent article, it is really appreciated.
I've been trying to get this working using Valerie's approach and the
one outlined in the blog article. ...I have found this to be the way to
go.
I did try to follow the original tutorial but there are a
couple of key points that are a bit unclear.....so perhaps I could try
and clarify?
First of all, I'm using I am using Android Studio 0.5.8, with the latest PhoneGap and Cordova 3.4.1
I started by adding a directory for my new project, let's say
D:/repositories/codenutz
Then open a console in that directory and type cordova create . codenutz.demo.com "Codenutz" --(don't forget the '.')
...followed by
cordova platform add android
you should see something like the following
PS D:\Repositories\codenutz> cordova create . codenutz.demo.com "Codenutz"
Creating a new cordova project with name "Codenutz" and id "codenutz.demo.com" at location "D:\Repositories\codenutz"
PS D:\Repositories\codenutz> cordova platform add android
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: codenutz.demo.com
Name: Codenutz
Android target: android-19
Copying template files...
Running: android update project --subprojects --path "platforms\android" --target android-19 --library "CordovaLib"
Resolved location of library project to: D:\Repositories\codenutz\platforms\android\CordovaLib
Updated and renamed default.properties to project.properties
Updated local.properties
No project name specified, using Activity name 'Codenutz'.
If you wish to change it, edit the first line of build.xml.
Added file D:\Repositories\codenutz\platforms\android\build.xml
Added file D:\Repositories\codenutz\platforms\android\proguard-project.txt
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'CordovaLib'.
If you wish to change it, edit the first line of build.xml.
Added file D:\Repositories\codenutz\platforms\android\CordovaLib\build.xml
Added file D:\Repositories\codenutz\platforms\android\CordovaLib\proguard-project.txt
Project successfully created.
PS D:\Repositories\codenutz>
The
you can follow the 'Import Project' steps in android studio, but
disregard the androidmanifest.xml file in the cordova module. BUT MOST
IMPORTANT import the project from the d:/repositories/codenutz
folder!!!!!!!! not the folder below
After that there is no need to add the www folder from the Cordova project.
I have also added the Genymotion emulator, which can be done by adding the genymotion plugin. This is a much better emulator.
I can supply screenshots if anyone is still stuck on getting up and running with this