Morgan21
12 Oct 2012, 5:34 AM
Hi, i started using the new Sencha Cmd 3.0.0.190 in one of my projects. All seemd to work fine until I tried to deploy my app as a native Android application. Here's the Command Line (I am currently working un Win 7 Ultimate OS):
C:\Program Files (x86)\EasyPHP-12.0\www\mobile20>sencha app build -e native
Sencha Cmd v3.0.0.190
[INFO ]
[INFO ] init-properties:
[INFO ]
[INFO ]
[INFO ] init-sencha-command:
[INFO ]
[INFO ]
[INFO ] init:
[INFO ]
[INFO ]
[INFO ] -before-app-build:
[INFO ]
[INFO ]
[INFO ] app-build-impl:
[INFO ]
[INFO ] building application
[INFO ] Deploying your application to C:\Program Files (x86)\EasyPHP-12.
0\www\mobile20\build\default\package
[INFO ] Copied app.js
[INFO ] Copied resources/css/app.css
[INFO ] Copied C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\resource
s\icons
[INFO ] Copied C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\resource
s\startup
[INFO ] Resolving your application dependencies (file:///C:/Program File
s (x86)/EasyPHP-12.0/www/mobile20/index.html)
[INFO ] Compiling app.js and dependencies
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\sencha-compile-temp-dir
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\touch\src
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\app.js
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\app
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal
in an ECMA-262 object initializer => }, function() { ] :: ( C:\Program Files (x
86)\EasyPHP-12.0\www\mobile20\touch\src\app\Controller.js => 625 : 1 )
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal
in an ECMA-262 object initializer => }, function() { ] :: ( C:\Program Files (x
86)\EasyPHP-12.0\www\mobile20\touch\src\app\Controller.js => 625 : 1 )
[INFO ] Processing source dependencies
[INFO ] Concatenating output to file C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\build\default\package\app.js
[INFO ] Completed compilation.
[INFO ] Processed remote file touch/sencha-touch.js
[INFO ] Processed local file app.js
[INFO ] Minified app.js
[INFO ] Minified resources/css/app.css
[INFO ] Generated app.json
[INFO ] Embedded microloader into index.html
[INFO ] Packaging your application as a native app...
[ERROR] failed running native packager
[ERROR] Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile
20\build\native\src\com\mycompany\myAppID
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\src\com
\mycompany\myAppID\STActivity.java
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
bin
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
libs
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res\values
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\res\val
ues\strings.xml
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res\layout
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\res\lay
out\main.xml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\Android
Manifest.xml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\build.x
ml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\proguar
d-project.txt
'C:\Users\Software' is not recognized as an internal or external command,
operable program or batch file.
""C:/Program Files (x86)/Android/android-sdk\tools\android" create project --tar
get android-7 --name MobileTester20 --activity STActivity --path "C:\Program Fil
es (x86)\EasyPHP-12.0\www\mobile20\build\native\/" --package com.mycompany.myApp
ID"
Could not run ant with error: 1
Failed to package application
[ERROR] Exception running app build : JavaException: com.sencha.exceptio
ns.ExBuild: failed running native packager
[ERROR] javax.script.ScriptException: JavaException: com.sencha.exceptio
ns.ExBuild: failed running native packager in <Unknown source> at line number 70
9
C:\Program Files (x86)\EasyPHP-12.0\www\mobile20>
And this is the content of my package.json:
{
/**
* @cfg {String} applicationName
* @required
* This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
* the name of your application in the Apple Provisioning Portal.
*/
"applicationName":"MobileTester20",
/**
* @cfg {String} applicationId
* This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
*/
"applicationId":"com.mycompany.myAppID",
/**
* @cfg {String} bundleSeedId
* A ten character string which stands before aplication ID in Apple Provisioning Portal
*/
"bundleSeedId":"KPXFEPZ6EF",
/**
* @cfg {String} versionString
* @required
* This is the version of your application.
*/
"versionString":"2.0",
/**
* @cfg {Integer} versionCode
* @required
* This is the integer version code of your application, or you can refer to it as a build number. Used only for Android builds.
*/
"versionCode":"2",
/**
* @cfg {Object} icon
* For iOS, please refer to their documentation about icon sizes:
* https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
*
* For Android, please refer to the Google Launcher icons guide:
* http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
*/
"icon": {
"57":"resources/icons/Icon.png",
"72":"resources/icons/Icon~ipad.png",
"114":"resources/icons/Icon@2x.png",
"144":"resources/icons/Icon~ipad@2x.png"
},
/**
* @cfg {String} inputPath
* @required
* This is location of your Sencha Touch 2 application, relative to this configuration file.
*/
"inputPath":"./",
/**
* @cfg {String} outputPath
* @required
* This is where the built application file with be saved. Make sure that output path is not in your input path, you may get into endless recursive copying
*/
"outputPath":"../build/",
/**
* @cfg {String} configuration
* @required
* This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
* store - in which case `Release` should be specified.
*/
"configuration":"Debug",
/**
* @cfg {String} platform
* @required
* This is the platform where you will be running your application. Available options are:
* - iOSSimulator
* - iOS
* - Android
* - AndroidEmulator
*/
"platform":"Android",
/**
* @cfg {String} deviceType
* @required
* This is device type that your application will be running on.
*
* If you are developing for Android, this is not necessary.
*
* Available options are:
* - iPhone
* - iPad
* - Universal
*/
"deviceType":"Universal",
/**
* @cfg {String} certificatePath
* This is the location of your certificate.
* This is required when you are developing for Android or you are developing on Windows.
*/
"certificatePath":"/path/to/certificate.file",
/**
* @cfg {String} certificateAlias
* This is the name of your certificate.
*
* IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
*
* This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
* can just put "iPhone Developer".
*
* When using a certificatePath on Windows, you do not need to specify this.
*/
"certificateAlias":"",
/**
* @cfg {String} sdkPath
* This is the path to the Android SDK, if you are developing an Android application.
*/
"sdkPath":"C:/Program Files (x86)/Android/android-sdk",
/**
/**
* @cfg {String} androidAPILevel
* This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
* Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
*/
"androidAPILevel":"7",
/**
/**
* @cfg {Array[String]} permissions
* Array of permissions that is used by an application (Android only)
* Full list of permissions for Android application can be found here: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
*/
"permissions":[
"INTERNET",
"ACCESS_NETWORK_STATE",
"CAMERA",
"VIBRATE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CALL_PHONE"],
/**
* @cfg {Array[String]} orientations
* @required
* This is orientations that this application can run.
*/
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
Any ideas on what I'm missing? Any help will be highly appreciated, thank you.
C:\Program Files (x86)\EasyPHP-12.0\www\mobile20>sencha app build -e native
Sencha Cmd v3.0.0.190
[INFO ]
[INFO ] init-properties:
[INFO ]
[INFO ]
[INFO ] init-sencha-command:
[INFO ]
[INFO ]
[INFO ] init:
[INFO ]
[INFO ]
[INFO ] -before-app-build:
[INFO ]
[INFO ]
[INFO ] app-build-impl:
[INFO ]
[INFO ] building application
[INFO ] Deploying your application to C:\Program Files (x86)\EasyPHP-12.
0\www\mobile20\build\default\package
[INFO ] Copied app.js
[INFO ] Copied resources/css/app.css
[INFO ] Copied C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\resource
s\icons
[INFO ] Copied C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\resource
s\startup
[INFO ] Resolving your application dependencies (file:///C:/Program File
s (x86)/EasyPHP-12.0/www/mobile20/index.html)
[INFO ] Compiling app.js and dependencies
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\sencha-compile-temp-dir
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\touch\src
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\app.js
[INFO ] Processing classPath entry : C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\app
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal
in an ECMA-262 object initializer => }, function() { ] :: ( C:\Program Files (x
86)\EasyPHP-12.0\www\mobile20\touch\src\app\Controller.js => 625 : 1 )
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[WARN ] [ [1000] : Yui Compressor Warning <> Trailing comma is not legal
in an ECMA-262 object initializer => }, function() { ] :: ( C:\Program Files (x
86)\EasyPHP-12.0\www\mobile20\touch\src\app\Controller.js => 625 : 1 )
[INFO ] Processing source dependencies
[INFO ] Concatenating output to file C:\Program Files (x86)\EasyPHP-12.0
\www\mobile20\build\default\package\app.js
[INFO ] Completed compilation.
[INFO ] Processed remote file touch/sencha-touch.js
[INFO ] Processed local file app.js
[INFO ] Minified app.js
[INFO ] Minified resources/css/app.css
[INFO ] Generated app.json
[INFO ] Embedded microloader into index.html
[INFO ] Packaging your application as a native app...
[ERROR] failed running native packager
[ERROR] Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile
20\build\native\src\com\mycompany\myAppID
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\src\com
\mycompany\myAppID\STActivity.java
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
bin
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
libs
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res\values
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\res\val
ues\strings.xml
Created directory C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\
res\layout
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\res\lay
out\main.xml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\Android
Manifest.xml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\build.x
ml
Added file C:\Program Files (x86)\EasyPHP-12.0\www\mobile20\build\native\proguar
d-project.txt
'C:\Users\Software' is not recognized as an internal or external command,
operable program or batch file.
""C:/Program Files (x86)/Android/android-sdk\tools\android" create project --tar
get android-7 --name MobileTester20 --activity STActivity --path "C:\Program Fil
es (x86)\EasyPHP-12.0\www\mobile20\build\native\/" --package com.mycompany.myApp
ID"
Could not run ant with error: 1
Failed to package application
[ERROR] Exception running app build : JavaException: com.sencha.exceptio
ns.ExBuild: failed running native packager
[ERROR] javax.script.ScriptException: JavaException: com.sencha.exceptio
ns.ExBuild: failed running native packager in <Unknown source> at line number 70
9
C:\Program Files (x86)\EasyPHP-12.0\www\mobile20>
And this is the content of my package.json:
{
/**
* @cfg {String} applicationName
* @required
* This is the name of your application, which is displayed on the device when the app is installed. On IOS, this should match
* the name of your application in the Apple Provisioning Portal.
*/
"applicationName":"MobileTester20",
/**
* @cfg {String} applicationId
* This is the name namespace for your application. On IOS, this should match the name of your application in the Apple Provisioning Portal.
*/
"applicationId":"com.mycompany.myAppID",
/**
* @cfg {String} bundleSeedId
* A ten character string which stands before aplication ID in Apple Provisioning Portal
*/
"bundleSeedId":"KPXFEPZ6EF",
/**
* @cfg {String} versionString
* @required
* This is the version of your application.
*/
"versionString":"2.0",
/**
* @cfg {Integer} versionCode
* @required
* This is the integer version code of your application, or you can refer to it as a build number. Used only for Android builds.
*/
"versionCode":"2",
/**
* @cfg {Object} icon
* For iOS, please refer to their documentation about icon sizes:
* https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
*
* For Android, please refer to the Google Launcher icons guide:
* http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html
*/
"icon": {
"57":"resources/icons/Icon.png",
"72":"resources/icons/Icon~ipad.png",
"114":"resources/icons/Icon@2x.png",
"144":"resources/icons/Icon~ipad@2x.png"
},
/**
* @cfg {String} inputPath
* @required
* This is location of your Sencha Touch 2 application, relative to this configuration file.
*/
"inputPath":"./",
/**
* @cfg {String} outputPath
* @required
* This is where the built application file with be saved. Make sure that output path is not in your input path, you may get into endless recursive copying
*/
"outputPath":"../build/",
/**
* @cfg {String} configuration
* @required
* This is configuration for your application. `Debug` should always be used unless you are submitting your app to an online
* store - in which case `Release` should be specified.
*/
"configuration":"Debug",
/**
* @cfg {String} platform
* @required
* This is the platform where you will be running your application. Available options are:
* - iOSSimulator
* - iOS
* - Android
* - AndroidEmulator
*/
"platform":"Android",
/**
* @cfg {String} deviceType
* @required
* This is device type that your application will be running on.
*
* If you are developing for Android, this is not necessary.
*
* Available options are:
* - iPhone
* - iPad
* - Universal
*/
"deviceType":"Universal",
/**
* @cfg {String} certificatePath
* This is the location of your certificate.
* This is required when you are developing for Android or you are developing on Windows.
*/
"certificatePath":"/path/to/certificate.file",
/**
* @cfg {String} certificateAlias
* This is the name of your certificate.
*
* IF you do not specify this on OSX, we will try and automatically find the certificate for you using the applicationId.
*
* This can be just a simple matcher. For example, if your certificate name is "iPhone Developer: Robert Dougan (ABCDEFGHIJ)", you
* can just put "iPhone Developer".
*
* When using a certificatePath on Windows, you do not need to specify this.
*/
"certificateAlias":"",
/**
* @cfg {String} sdkPath
* This is the path to the Android SDK, if you are developing an Android application.
*/
"sdkPath":"C:/Program Files (x86)/Android/android-sdk",
/**
/**
* @cfg {String} androidAPILevel
* This is android API level, the version of Android SDK to use, you can read more about it here: http://developer.android.com/guide/appendix/api-levels.html.
* Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
*/
"androidAPILevel":"7",
/**
/**
* @cfg {Array[String]} permissions
* Array of permissions that is used by an application (Android only)
* Full list of permissions for Android application can be found here: http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_CHECKIN_PROPERTIES
*/
"permissions":[
"INTERNET",
"ACCESS_NETWORK_STATE",
"CAMERA",
"VIBRATE",
"ACCESS_FINE_LOCATION",
"ACCESS_COARSE_LOCATION",
"CALL_PHONE"],
/**
* @cfg {Array[String]} orientations
* @required
* This is orientations that this application can run.
*/
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
Any ideas on what I'm missing? Any help will be highly appreciated, thank you.