1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default about applicationName how to use chinese character

    about applicationName how to use chinese character


    in package.json ,applicationName can only use a~Z

    but ,in package build.I need to outupt chinese character as app name

    how can i do?

    in android progect,app name do support chinese character

    any idea? modify \stbuild\st-res\templates\AndroidManifest.xml ?

    I need help~

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    What command statement are you running?

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default


    Quote Originally Posted by slemmon View Post
    What command statement are you running?
    sencha app package build apk.json

  4. #4
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default i think non-english user all want use appname with their native language

    i think non-english user all want use appname with their native language


    i think all non-english user want to use appname with their native language

    eg: chinese ,japanese character

  5. #5
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Do you know the charset for the character you're using? utf8? other?
    Could you post the apk.json file?

  6. #6
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default


    Quote Originally Posted by slemmon View Post
    Do you know the charset for the character you're using? utf8? other?
    Could you post the apk.json file?
    Code:
    {
        /**
         * @cfg  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":"myapp",
    
    
        /**
         * @cfg  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.feiqiao.myapp",
    
    
        /**
         * @cfg  bundleSeedId
         * A ten character string which stands before aplication ID in Apple Provisioning Portal
         */
        //"bundleSeedId":"KPXFEPZ6EF",
    
    
        /**
         * @cfg  versionString
         * @required
         * This is the version of your application.
         */
        "versionString":"1.0",
    
    
        /**
         * @cfg  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":"1",
    
    
        /**
         * @cfg  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
         * iOS uses 57, 72, 114 and 144; Android uses 36, 48 and 72; if you package for Android you can ignore iOS icons and vice verca
         */
        // "icon": {
        //     "36":"resources/icons/Icon_Android36.png",
        //     "48":"resources/icons/Icon_Android48.png",
        //     "57":"resources/icons/Icon.png",
        //     "72":"resources/icons/Icon~ipad.png",
        //     "114":"resources/icons/Icon@2x.png",
        //     "144":"resources/icons/Icon~ipad@2x.png"
        // },
    
    
        "iconName": "resources\\icons\\icon.png",
    
    
        /**
         * @cfg  inputPath
         * @required
         * This is location of your Sencha Touch 2 application, relative to this configuration file.
         */
        "inputPath":"./",
    
    
        /**
         * @cfg  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  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  platform
         * @required
         * This is the platform where you will be running your application. Available options are:
         *  - iOSSimulator
         *  - iOS
         *  - Android
         *  - AndroidEmulator
         */
        "platform":"AndroidEmulator",
    
    
        /**
         * @cfg  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  certificatePath
         * This is the location of your certificate.
         * This is required when you are developing for Android or you are developing on Windows.
         */
        "certificatePath":"feiqiao-yang.keystore",
    
    
        /**
         * @cfg  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":"yang",
        /**
         * @cfg  certificatePassword
         * The password which was specified during certificate export
         */
        "certificatePassword":"123456",
        /**
         * @cfg  provisionProfile
         * The path to the provision profile (APP_NAME.mobileprovision) which you can create and then download from Apple's provisioning portal
         */
        "provisionProfile":"",
        /**
         * @cfg  notificationConfiguration
         * Notification configuration for push notifications, can be "debug", "release" or empty if you don't use push notifications in your project.
         */
        "notificationConfiguration":"",
        /**
         * @cfg  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/appendix/api-levels.html.
         * Be sure to install corresponding platform API in android SDK manager (android_sdk/tools/android)
         */
        "androidAPILevel":"8",
    
    
            /**
         * @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"
        ]
    }
    apk.json charset is UTF-8

  7. #7
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default


    what i need is just define applicationName in chinese character with unicode,for example: "\u6d4b\u8bd5\u7a0b\u5e8f"

    "applicationName":"myapp" =>"applicationName":"\u6d4b\u8bd5\u7a0b\u5e8f"


    but when i use this applicationName,there is buiild error
    1.jpg

  8. #8
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,770
    Vote Rating
    165
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Hmm... Can you post the debug log? If you run "sencha -debug app package build apk.json > debug.log" that will output to a log file. You can name / path the debug.log whatever you like.

  9. #9
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default


    here is my debug log info:

    [DBG] Loading configuration from F:\web\php\senchaTouch\production
    [DBG] Loading build environment from directory F:\web\php\senchaTouch\production
    Sencha Cmd v3.1.2.342
    [DBG] Loading CommandProviders
    [DBG] Scanning for extensions in F:\Sencha\Cmd\3.1.2.342\extensions
    [DBG] loading extension from F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass
    [DBG] Loaded extension sencha-compass
    [DBG] loading extension from F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io
    [DBG] Loaded extension sencha-io
    [DBG] Scanning extensions directory F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass for extensions
    [DBG] Located F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass\sencha-compass.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass\sencha-compass.jar
    [DBG] get value lib/slf4j-api-1.6.6.jar lib/ant-1.8.4.jar lib/ant-launcher-1.8.4.jar for manifest class path
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass\lib\slf4j-api-1.6.6.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass\lib\ant-1.8.4.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-compass\lib\ant-launcher-1.8.4.jar
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/sencha-compass.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/ant-1.8.4.jar!/
    [DBG] Add extension classpath entry 'sencha-compass' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar!/
    [DBG] Scanning extensions directory F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io for extensions
    [DBG] Located F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\sencha-io.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\sencha-io.jar
    [DBG] get value lib/httpclient-4.2.1.jar lib/commons-logging-1.1.1.jar lib/commons-codec-1.6.jar lib/httpclient-cache-4.2.1.jar lib/httpcore-4.2.1.jar lib/httpmime-4.2.1.jar lib/slf4j-api-1.6.6.jar lib/gson-2.2.1.jar for manifest class path
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\httpclient-4.2.1.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\commons-logging-1.1.1.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\commons-codec-1.6.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\httpclient-cache-4.2.1.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\httpcore-4.2.1.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\httpmime-4.2.1.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\slf4j-api-1.6.6.jar
    [DBG] loading manifest for jar F:\Sencha\Cmd\3.1.2.342\extensions\sencha-io\lib\gson-2.2.1.jar
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/sencha-io.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpclient-4.2.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/commons-logging-1.1.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/commons-codec-1.6.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpclient-cache-4.2.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpcore-4.2.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpmime-4.2.1.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/slf4j-api-1.6.6.jar!/
    [DBG] Add extension classpath entry 'sencha-io' : jar:file:/F:/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/gson-2.2.1.jar!/
    [DBG] using path F:\Sencha\Cmd\3.1.2.342\stbuild;F:\Sencha\Cmd\3.1.2.342\stbuild\bin;F:\Sencha\Cmd\3.1.2.342;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;F:\node64\nodejs\;F:\node64\npm-global;F:\Sencha;C:\Program Files\TortoiseSVN\bin;E:\Android\android-sdk\platform-tools;E:\Android\android-sdk\tools;C:\Program Files\Java\jdk1.7.0_25\bin;F:\phonegap\apache-ant-1.9.2\bin;C:\Program Files (x86)\Git\cmd;F:\Ruby193\bin;C:\Users\yang\AppData\Roaming\npm
    [DBG] executable located at F:\Sencha\Cmd\3.1.2.342\stbuild\stbuild.exe
    [DBG] using working directory .
    Error: Project name '???è???¨????' contains invalid characters.
    Allowed characters are: a-z A-Z 0-9 _
    ""E:\android\android-sdk\tools\android" create project --target android-8 --name ???è???¨???? --activity STActivity --path "../build/\/" --package com.feiqiao.device"
    Can not open destination file for writing
    Failed to copy packager library
    Failed to package application
    Copy operation failed src=F:\Sencha\Cmd\3.1.2.342\stbuild\st-res/android/\nimblekit.jar dst=../build/\\libs\nimblekit.jar
    [DBG] exit code was : 3
    [DBG] exit code was : 3
    [ERR]
    Error: Project name '???è???¨????' contains invalid characters.
    Allowed characters are: a-z A-Z 0-9 _
    ""E:\android\android-sdk\tools\android" create project --target android-8 --name ???è???¨???? --activity STActivity --path "../build/\/" --package com.feiqiao.device"
    Can not open destination file for writing
    Failed to copy packager library
    Failed to package application
    Copy operation failed src=F:\Sencha\Cmd\3.1.2.342\stbuild\st-res/android/\nimblekit.jar dst=../build/\\libs\nimblekit.jar


    [ERR] stbuild exited with non-zero code : 3
    at com.sencha.command.app.AppPackageCommands$BasePackageCommand.execute(AppPackageCommands.java:44)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
    at com.sencha.cli.Command.dispatch(Command.java:42)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.cli.Commands.dispatch(Commands.java:62)
    at com.sencha.command.Sencha.dispatch(Sencha.java:78)
    at com.sencha.command.Sencha.main(Sencha.java:141)

  10. #10
    Sencha User
    Join Date
    Apr 2013
    Posts
    16
    Vote Rating
    0
    feiqiao is on a distinguished road

      0  

    Default


    the key error is :
    [ERR]
    Error: Project name '???è???¨????' contains invalid characters.
    Allowed characters are: a-z A-Z 0-9 _
    ""E:\android\android-sdk\tools\android" create project --target android-8 --name ???è???¨???? --activity STActivity --path "../build/\/" --package com.feiqiao.device"


    in my apk.json:

    "applicationName":"\u6d4b\u8bd5\u7a0b\u5e8f",

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar