Wednesday, May 22, 2013

PhoneGap - Setup New Project

PhoneGap with Android

Setup New Project

  • In a terminal window, navigate to the bin directory within the android 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)

Related Posts:

  • Mobile Website vs. Mobile App (Application): Which is Best for Your Organization? If you're planning to establish a mobile presence for your business or organization one of the first considerations that will likely come to mind is whether you want to create a mobile application for users to download (ap… Read More
  • HTC - Flash Custom ROMYour CID number must be exactly the same. If it's written "HTC__001" it means you can't flash it, if your CID is "02__001". The whole text must match! … Read More
  • Mobile - Unlock & Root HTC Phone A. UNLOCK BOOTLOADER. 1/ Tình hình Chung: - Do một số bạn còn mới sử dụng One X hay Android của HTC còn bỡ ngỡ với cách hướng dẫn Unlock Bootloader của HTC nên mình viết bài này để các bạn có thể thực hiện một cách đơn … Read More
  • HTC - Restore Backup/Stock ROM Methods for returning back HTC One X to stock ROM from any custom ROM Method 1 Go to: bootloader / fastboot mode: (refer above guide) 1- flash a stock recovery.img fastboot flash recovery recovery_signed.img fastboot reboot… Read More
  • PhoneGap - Setup New Project PhoneGap with Android Setup New Project In a terminal window, navigate to the bin directory within the android subfolder of the Cordova distribution. Type in ./create <project_folder_path> <package_name> <… Read More

0 comments:

Post a Comment