PhoneGap with Android
Setup New Project
- In a terminal window, navigate to the
bin
directory within theandroid
subfolder of the Cordova distribution. -
Type in
./create <project_folder_path> <package_name> <project_name>
then press "Enter"
Setup your PATH environment variable on Windows
Environment path;C:\Development\android-sdk-windows\platform-tools;C:\Development\android-sdk-windows\tools
Create Project
phonegap\lib\android\bin>create
<project_folder_path> <package_name> <project_name>
Import into Eclipse
Select menu item New Project
Trouble Shooting
Error:
lib\android\bin\create.js(31, 5) Microsoft JScript runtime error: Path not found
Solved:
removed the hyphen, dot ... from project dir name and it worked (without modifying create.js)
0 comments:
Post a Comment