Results 1 to 3 of 3

Thread: Sencha Touch tools package android problem!

  1. #1
    Sencha User sailei1's Avatar
    Join Date
    Jul 2011
    Location
    BeiJing China
    Posts
    43

    Default Sencha Touch tools package android problem!

    Microsoft Windows [?? 6.1.7601]
    ???? (c) 2009 Microsoft Corporation????????


    C:\Windows\system32>cd E:\space\Tom


    C:\Windows\system32>E:


    E:\space\Tom>sencha app build -e native
    [INFO] Deploying your application to E:\space\Tom\build\package
    [INFO] Copied sdk/sencha-touch.js
    [INFO] Copied app.js
    [INFO] Copied resources/css/app.css
    [INFO] Copied resources/images
    [INFO] Copied resources/icons
    [INFO] Copied resources/startup
    [INFO] Resolving your application dependencies (file:///E:/space/Tom/index.html)


    [INFO] Found 191 dependencies. Concatenating all into 'E:\space\Tom\build\packag
    e\app.js'
    [INFO] Processed sdk/sencha-touch.js
    [INFO] Minifying sdk/sencha-touch.js
    [INFO] Processed app.js
    [INFO] Minifying app.js
    [INFO] Minifying resources/css/app.css
    [INFO] Minified sdk/sencha-touch.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...
    [INFO] Created directory E:\space\Tom\build\native\src\com\sai\test
    Added file E:\space\Tom\build\native\src\com\sai\test\STActivity.java
    Created directory E:\space\Tom\build\native\res
    Created directory E:\space\Tom\build\native\bin
    Created directory E:\space\Tom\build\native\libs
    Created directory E:\space\Tom\build\native\res\values
    Added file E:\space\Tom\build\native\res\values\strings.xml
    Created directory E:\space\Tom\build\native\res\layout
    Added file E:\space\Tom\build\native\res\layout\main.xml
    Added file E:\space\Tom\build\native\AndroidManifest.xml
    Added file E:\space\Tom\build\native\build.xml
    Added file E:\space\Tom\build\native\proguard-project.txt
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\li
    b\tools.jar
    Buildfile: E:\space\Tom\build\native\build.xml


    -set-mode-check:


    -set-release-mode:


    -release-obfuscation-check:
    [echo] proguard.config is ${proguard.config}


    -check-env:
    [checkenv] Android SDK Tools Revision 20.0.1
    [checkenv] Installed at E:\Android\android-sdk


    -setup:
    [echo] Project Name: MyApplication
    [gettype] Project Type: Application


    -build-setup:
    [echo] Resolving Build Target for MyApplication...
    [gettarget] Project Target: Android 2.1
    [gettarget] API level: 7
    [echo] ----------
    [echo] Creating output directories if needed...
    [mkdir] Created dir: E:\space\Tom\build\native\bin\res
    [mkdir] Created dir: E:\space\Tom\build\native\gen
    [mkdir] Created dir: E:\space\Tom\build\native\bin\classes
    [echo] ----------
    [echo] Resolving Dependencies for MyApplication...
    [dependency] Library dependencies:
    [dependency] No Libraries
    [dependency]
    [dependency] ------------------
    [dependency] API<=15: Adding annotations.jar to the classpath.
    [echo] ----------
    [echo] Building Libraries with 'release'...
    [subant] No sub-builds to iterate on


    -pre-build:


    -code-gen:
    [mergemanifest] Merging AndroidManifest files into one.
    [mergemanifest] Manifest merger disabled. Using project manifest only.
    [echo] Handling aidl files...
    [aidl] No AIDL files to compile.
    [echo] ----------
    [echo] Handling RenderScript files...
    [renderscript] No RenderScript files to compile.
    [echo] ----------
    [echo] Handling Resources...
    [aapt] Generating resource IDs...
    [echo] ----------
    [echo] Handling BuildConfig class...
    [buildconfig] Generating BuildConfig class.


    -pre-compile:


    -compile:
    [javac] Compiling 3 source files to E:\space\Tom\build\native\bin\classes
    ""E:/Android/android-sdk/tools/android" create project --target android-7 --name
    MyApplication --activity STActivity --path "E:\space\Tom\build\native/" --packa
    ge com.sai.test"
    Could not run ant with error: 1
    Failed to package application
    [ERROR]
    BUILD FAILED
    E:\Android\android-sdk\tools\ant\build.xml:679: The following error occurred whi
    le executing this line:
    E:\Android\android-sdk\tools\ant\build.xml:692: Error running javac.exe compiler




    Total time: 1 second


    E:\space\Tom>

  2. #2
    Sencha User sailei1's Avatar
    Join Date
    Jul 2011
    Location
    BeiJing China
    Posts
    43

    Default

    {
    /**
    * @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":"My Application",


    /**
    * @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.sai.test",


    /**
    * @cfg {String} versionString
    * @required
    * This is the version of your application.
    */
    "versionString":"1.0",


    /**
    * @cfg {String} iconName
    * This is file name of your icon. This should be in the same directory of this configuration file.
    *
    * For iOS, please refer to their documentation about icon sizes:
    * https://developer.apple.com/library/...onsImages.html
    *
    * For Android, please refer to the Google Launcher icons guide:
    * http://developer.android.com/guide/p..._launcher.html
    */
    "iconName":"resources/icons/Icon~ipad.png",


    /**
    * @cfg {String} inputPath
    * @required
    * This is location of your Sencha Touch 2 application, relative to this configuration file.
    */
    "inputPath":"build/native",


    /**
    * @cfg {String} outputPath
    * @required
    * This is where the built application file with be saved.
    */
    "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":"Release",


    /**
    * @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":"E:/Android/my-release-key.keystore",


    /**
    * @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":"senchatouch",

    /**
    * @cfg {String} sdkPath
    * This is the path to the Android SDK, if you are developing an Android application.
    */
    "sdkPath":"E:/Android/android-sdk",

    /**
    * @cfg 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/a...pi-levels.html.
    * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
    */
    "androidAPILevel":"10",


    /**
    * @cfg orientations
    * @required
    * This is orientations that this application can run.
    */
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }
    packager.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":"My Application",


    /**
    * @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.sai.test",


    /**
    * @cfg {String} versionString
    * @required
    * This is the version of your application.
    */
    "versionString":"1.0",


    /**
    * @cfg {String} iconName
    * This is file name of your icon. This should be in the same directory of this configuration file.
    *
    * For iOS, please refer to their documentation about icon sizes:
    * https://developer.apple.com/library/...onsImages.html
    *
    * For Android, please refer to the Google Launcher icons guide:
    * http://developer.android.com/guide/p..._launcher.html
    */
    "iconName":"resources/icons/Icon~ipad.png",


    /**
    * @cfg {String} inputPath
    * @required
    * This is location of your Sencha Touch 2 application, relative to this configuration file.
    */
    "inputPath":"build/native",


    /**
    * @cfg {String} outputPath
    * @required
    * This is where the built application file with be saved.
    */
    "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":"Release",


    /**
    * @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":"E:/Android/my-release-key.keystore",


    /**
    * @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":"senchatouch",

    /**
    * @cfg {String} sdkPath
    * This is the path to the Android SDK, if you are developing an Android application.
    */
    "sdkPath":"E:/Android/android-sdk",

    /**
    * @cfg 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/a...pi-levels.html.
    * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
    */
    "androidAPILevel":"10",


    /**
    * @cfg orientations
    * @required
    * This is orientations that this application can run.
    */
    "orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
    ]
    }

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    37

    Default

    seems jre problem, make sure u installed the latest jre and point to the correct path

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •