Creating android app, preparing windows
1. Installed Android SDK
http://developer.android.com/sdk/index.html
includes eclipse
2. Installed Node
http://nodejs.org/
Addition paths
To add this paths for windows go to Advanced system settings -> Environmental Variables
Under "System variables" There is "Path" select it and append these lines. Separator is ";"
so the result will be like
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;c:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\Program Files\Extensis\Suitcase Fusion 2;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Calibre2\;C:\wamp\bin\php\php5.4.16;C:\Program Files\nodejs\;C:\sor\androidsdk\sdk\platform-tools\;C:\sor\androidsdk\sdk\tools\;C:\Program Files\Java\jre7\bin\;C:\Program Files\Java\jdk1.7.0_45\bin\;C:\sor\ant\bin
0 - C:\wamp\bin\php\php5.4.16; (for php)
1 - C:\Program Files\nodejs\; (for npm)
2 - C:\sor\androidsdk\sdk\platform-tools\; (Pointing to android sdk)
3 - C:\sor\androidsdk\sdk\tools\; (to android tools)
4 - C:\Program Files\Java\jre7\bin\; (Pointing to java)
5 - C:\Program Files\Java\jdk1.7.0_45\bin\; (Downloaded jdk from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and installed this path added auto?)
6 - C:\sor\ant\bin (Pointing Ant)
Added path
To add this you have to create new "System variables" -> "Click New..."
ANT_HOME C:\sor\ant (Downloaded ant from http://ant.apache.org/bindownload.cgi and extracted there)
JAVA_HOME C:\Program Files\Java\jdk1.7.0_45 (Had to add this manually)
3. Installed cordova
npm install -g cordova
(note that -g option it is for global install )
4. Read Latest documents
http://cordova.apache.org/docs/en/3.2.0/guide_cli_index.md.html
http://cordova.apache.org/docs/en/3.2.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
5. Creating project steps
1 - cordova create test
2 - cd test
3 - cordova platform add android
3.1 - add ios etc... if you want
4 - cordova build
5 - cordova emulate android
http://developer.android.com/sdk/index.html
includes eclipse
2. Installed Node
http://nodejs.org/
Addition paths
To add this paths for windows go to Advanced system settings -> Environmental Variables
Under "System variables" There is "Path" select it and append these lines. Separator is ";"
so the result will be like
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;c:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared;C:\Program Files\Extensis\Suitcase Fusion 2;C:\Program Files\QuickTime\QTSystem;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Calibre2\;C:\wamp\bin\php\php5.4.16;C:\Program Files\nodejs\;C:\sor\androidsdk\sdk\platform-tools\;C:\sor\androidsdk\sdk\tools\;C:\Program Files\Java\jre7\bin\;C:\Program Files\Java\jdk1.7.0_45\bin\;C:\sor\ant\bin
0 - C:\wamp\bin\php\php5.4.16; (for php)
1 - C:\Program Files\nodejs\; (for npm)
2 - C:\sor\androidsdk\sdk\platform-tools\; (Pointing to android sdk)
3 - C:\sor\androidsdk\sdk\tools\; (to android tools)
4 - C:\Program Files\Java\jre7\bin\; (Pointing to java)
5 - C:\Program Files\Java\jdk1.7.0_45\bin\; (Downloaded jdk from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and installed this path added auto?)
6 - C:\sor\ant\bin (Pointing Ant)
Added path
To add this you have to create new "System variables" -> "Click New..."
ANT_HOME C:\sor\ant (Downloaded ant from http://ant.apache.org/bindownload.cgi and extracted there)
JAVA_HOME C:\Program Files\Java\jdk1.7.0_45 (Had to add this manually)
3. Installed cordova
npm install -g cordova
(note that -g option it is for global install )
4. Read Latest documents
http://cordova.apache.org/docs/en/3.2.0/guide_cli_index.md.html
http://cordova.apache.org/docs/en/3.2.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
5. Creating project steps
1 - cordova create test
2 - cd test
3 - cordova platform add android
3.1 - add ios etc... if you want
4 - cordova build
5 - cordova emulate android
Comments
Post a Comment