1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    9
    Vote Rating
    3
    bach_thesis is on a distinguished road

      1  

    Default problem with native built via Sencha Architect

    problem with native built via Sencha Architect


    Hello all,

    I have started coding with Sencha Architect Version 2.2.2 Build 991 and created an app just for testing the features. I was able to save it and built it via the package button in Sencha Architect which implies to me that Sencha cmd, the SDK and Sencha Touch are installed correctly. Now i have new folders in my projects directory called "native", "package" and "production". I want to deploy the app to my android device (LG Nexus4).

    It worked using PhoneGap. But how can i use the folders/data created by Sencha Architect in order to install the app on my mobile device? Which steps do i have to make?

    I am also not able to change my packager.json files in order to change destination platform like android or an emulator. I can change them in my folders but the Architect does not accept these changes in the Project Inspector. Is there any read-only setting or something like that?

    Thanks in advance!

  2. #2
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    You'll want to edit the packager settings from inside of Architect. If you've added a package setting it should show up under resources.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    9
    Vote Rating
    3
    bach_thesis is on a distinguished road

      0  

    Default


    Oh thanks. I just missed the config window of the packager file....

    Now I have some other problems. I am going to try to fix them in the next time.

    If there is anything then I will ask again.

  4. #4
    Sencha User
    Join Date
    May 2013
    Posts
    9
    Vote Rating
    3
    bach_thesis is on a distinguished road

      0  

    Default


    Hello again.
    I fixed the settings in the packager.json file via the Sencha Architect, created a certificate for my app and installed API level 17 of the android SDK. I also cleared all errors with a description.

    The packager file is in the attachments. I hope it is correct in this way.

    I also copied the text out of the command line tool. It gives me an error without any description. I am not coming forwards at this point because there is no explanation what is wrong at this point:


    C:\xampp\htdocs\sencha\test>set PATH=C:/sencha/cmd;C:\Ruby193\bin;C:\sencha\cmd\
    Sencha\Cmd\3.1.2.342;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\
    Windows\System32\WindowsPowerShell\v1.0\ & sencha app build native
    Sencha Cmd v3.1.2.342
    [INF]
    [INF] init-plugin:
    [INF]
    [INF] cmd-root-plugin.init-properties:
    [INF]
    [INF] init-properties:
    [INF]
    [INF] init-sencha-command:
    [INF]
    [INF] init:
    [INF]
    [INF] app-build-impl:
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd:
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF] [x-load-properties] Loading optional properties file C:\xampp\htdocs\sench
    a\test\.sencha\app\native.properties
    [INF] [x-load-properties] Loading required properties file C:\xampp\htdocs\sench
    a\test\.sencha\app\build.properties
    [INF]
    [INF] -after-init:
    [INF]
    [INF] -before-init-default:
    [INF]
    [INF] -init-default:
    [INF]
    [INF] -after-init-default:
    [INF]
    [INF] init:
    [INF]
    [INF] -before-build:
    [INF]
    [INF] sass:
    [INF]
    [INF] -before-sass:
    [INF]
    [INF] -sass:
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF]
    [INF] -after-sass:
    [INF]
    [INF] page:
    [INF]
    [INF] -before-page:
    [INF]
    [INF] -page:
    [INF] building application
    [INF] Deploying your application to C:\xampp\htdocs\sencha\test\build\test\packa
    ge
    [INF] Copied C:\xampp\htdocs\sencha\test\app.js to C:\xampp\htdocs\sencha\test\b
    uild\test\package\app.js
    [INF] Copied C:\xampp\htdocs\sencha\test\resources\css\app.css to C:\xampp\htdoc
    s\sencha\test\build\test\package\resources\css\app.css
    [INF] Copied C:\xampp\htdocs\sencha\test\resources\images
    [INF] Copied C:\xampp\htdocs\sencha\test\resources\icons
    [INF] Copied C:\xampp\htdocs\sencha\test\resources\startup
    [INF] Resolving your application dependencies (file:///C:/xampp/htdocs/sencha/te
    st/index.html)
    [INF] Compiling app.js and dependencies
    [INF] Loading classpath entry C:\xampp\htdocs\sencha\test\touch\src
    [INF] Loading classpath entry C:\xampp\htdocs\sencha\test\app.js
    [INF] Loading classpath entry C:\xampp\htdocs\sencha\test\app
    [INF] Concatenating output to file C:\xampp\htdocs\sencha\test\build\test\packag
    e\app.js
    [INF] Completed compilation.
    [INF] Processed remote file touch/sencha-touch.js
    [INF] Processed local file app.js
    [INF] Minified app.js
    [INF] Generated app.json
    [INF] Embedded microloader into index.html
    [INF] Generating native package
    [ERR] The following error occurred while executing this line:
    C:\xampp\htdocs\sencha\test\.sencha\app\build-impl.xml:165: The following error
    occurred while executing this line:
    C:\xampp\htdocs\sencha\test\.sencha\app\build-impl.xml:158: com.sencha.exception
    s.ExScript: SyntaxError: unterminated string literal (C:\sencha\cmd\Sencha\Cmd\3
    .1.2.342\ant\ant-util.js#605(eval)#53)
    isJavaCollection (C:\sencha\cmd\Sencha\Cmd\3.1.2.342\ant\ant-util.js:183)
    toJS (C:\sencha\cmd\Sencha\Cmd\3.1.2.342\ant\ant-util.js:241)
    runAppBuild (x-app-build:9)
    [anonymous] (x-app-build:571)
    x_app_build (x-app-build:569)
    <script> (anonymous:1)


    I am thankful for your help or any other advices regarding the natavie packaing in sencha architect.
    Attached Files

  5. #5
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    Your inputPath has a slash in it that's bad.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  6. #6
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    as does your outputPath
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  7. #7
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    I opened the packager file in my sublime text 2 editor and switched my syntax to JSON and it showed me the issues
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  8. #8
    Sencha User
    Join Date
    May 2013
    Posts
    9
    Vote Rating
    3
    bach_thesis is on a distinguished road

      1  

    Default


    First of all i want to thank you for your fast an constructive answers.

    I downloaded the Sublime2 editor and checked my packager.json file. It is correct now.
    I also adapted my JAVA_HOME path to the corresponding JDK path. That works now fine too.

    But now there are some errors now about the copying of the images of the app:

    "Can not open source file"
    "Can not open source file"
    "Could not run ant with error: 255"
    "Copy operation failed" (regarding the standard sencha icon.png)

    ____
    original cmd text:

    [INF] Packaging your application as a native app to C:\xampp\htdocs\sencha\test\
    build\test\native ...
    [ERR] failed running native packager
    [ERR] Created project directory: C:\xampp\htdocs\sencha\test\build\test\native
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\src\com\mycompan
    y\myAppID
    Added file C:\xampp\htdocs\sencha\test\build\test\native\src\com\mycompany\myApp
    ID\STActivity.java
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\bin
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\libs
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\values
    Added file C:\xampp\htdocs\sencha\test\build\test\native\res\values\strings.xml
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\layout
    Added file C:\xampp\htdocs\sencha\test\build\test\native\res\layout\main.xml
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\drawable-xhd
    pi
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\drawable-hdp
    i
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\drawable-mdp
    i
    Created directory C:\xampp\htdocs\sencha\test\build\test\native\res\drawable-ldp
    i
    Added file C:\xampp\htdocs\sencha\test\build\test\native\AndroidManifest.xml
    Added file C:\xampp\htdocs\sencha\test\build\test\native\build.xml
    Added file C:\xampp\htdocs\sencha\test\build\test\native\proguard-project.txt
    Ein Unterverzeichnis oder eine Datei mit dem Namen "C:\xampp\htdocs\sencha\test\
    build\test\native\\libs\" existiert bereits.
    Ein Unterverzeichnis oder eine Datei mit dem Namen "C:\xampp\htdocs\sencha\test\
    build\test\native\\assets\" existiert bereits.
    "Files" kann syntaktisch an dieser Stelle nicht verarbeitet werden.
    ""C:\android\sdk\tools\android" create project --target android-17 --name test -
    -activity STActivity --path "C:\xampp\htdocs\sencha\test\build\test\native\/" --
    package com.mycompany.myAppID"
    Can not open source file
    Can not open source file
    Could not run ant with error: 255
    Failed to package application
    Copy operation failed src=C:\xampp\htdocs\sencha\test\build\test\package\\ dst=C
    :\xampp\htdocs\sencha\test\build\test\native\\res\drawable-ldpi\icon.png
    Copy operation failed src=C:\xampp\htdocs\sencha\test\build\test\package\\ dst=C
    :\xampp\htdocs\sencha\test\build\test\native\\res\drawable-mdpi\icon.png


    [ERR] The following error occurred while executing this line:
    C:\xampp\htdocs\sencha\test\.sencha\app\build-impl.xml:165: The following error
    occurred while executing this line:
    C:\xampp\htdocs\sencha\test\.sencha\app\build-impl.xml:158: com.sencha.exception
    s.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native package
    r (x-app-build#515)
    isJavaCollection (C:\sencha\cmd\Sencha\Cmd\3.1.2.342\ant\ant-util.js:183)
    toJS (C:\sencha\cmd\Sencha\Cmd\3.1.2.342\ant\ant-util.js:241)
    runAppBuild (x-app-build:9)
    [anonymous] (x-app-build:571)
    x_app_build (x-app-build:569)
    <script> (anonymous:1)



    Could it be connected with the fact that i saved my project in the C:\xampp\htdocs folder??

  9. #9
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,738
    Vote Rating
    51
    Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough Phil.Strong is a jewel in the rough

      0  

    Default


    Do you have ant installed?

    http://wiki.apache.org/ant/AntOnWindows
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  10. #10
    Sencha User
    Join Date
    May 2013
    Posts
    9
    Vote Rating
    3
    bach_thesis is on a distinguished road

      1  

    Default


    Yes, i was missing ant for windows. Thanks for this advice.

    "Successfully packaged native application"

    It worked all right now. I was able to copy the .apk file manually to my smartphone (nexus4) and was able to install it. I have to admit i am quite impressed now.

    After that i tried to package my app for the store with the command:

    sencha app package build C:\xampp\htdocs\sencha\test and i get the following error:

    [ERR]
    Can not open configuration file


    [ERR] stbuild exited with non-zero code : 3

    After trying to generate a configuration file with sencha app package generate C:\xampp\htdocs\sencha\test i get another error without any description...

    [ERR]


    [ERR] stbuild exited with non-zero code : 2


    Would be great if u can help me another time

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