Hybrid View

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default No APK file gets created when trying to package Touch app for Android

    No APK file gets created when trying to package Touch app for Android


    Hi

    I am having a go at packaging up my Touch application into native Android using the 2.0 beta version of the SDK tools.

    I have created a config file and when I run the package command from my command line tool, I don't see any output in the console to suggest an apk file has generated and no file appears in the target directory specified in the config file either. I dont get any errors either, the console just gives me a new command line.

    I am at a dead end now, has anyone out there successfully packaged up an apk file following the Touch docs here http://docs.sencha.com/touch/2-0/#!/...native_android

  2. #2
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    chapkin is on a distinguished road

      0  

    Default same problem here

    same problem here


    the same problem on windows 7 64 bit.

    I traced the problem to the following: there is a console program stbuild.exe that installs as part of sencha SDK and that is called when you do sencha package config.json

    the thing is : when you change the platform name in the config from IOSSImulator to either Android or AndroidEmulator, stbuild stops analyzing the file and does not do anything - even if all paths in the config are plain wrong.

    for IOS it at least prints messages like "build/ directory does not exist - cannot copy files" and so on.

    so this may well be a problem with the current version of stbuild.exe in Sencha Touch SDK

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    I am also running windows 7 64 bit, sounding more and more like a bug in the sdk tools now!?

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    20
    Vote Rating
    0
    sebastianwoinar is on a distinguished road

      0  

    Default


    Same issue with SenchaSDKTools 2.0.0 beta for MAC OSx Lion.

    platform: IOSSImulator works,

    AndroidEmulator does not create or tell me anything.

  5. #5
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    Ok, I have now managed to get the packager running on an Windows XP machine and am now seeing debug in the console.

    The build keeps failing for me as follows:

    Code:
    C:\AndroidApps\BuildTemplates>sencha package run pptouchTemplate.json
    Created directory C:\AndroidApps\BuildTemplates\build\src\sbs\pinpointers\pptouc
    h
    Added file C:\AndroidApps\BuildTemplates\build\src\sbs\pinpointers\pptouch\STAct
    ivity.java
    Created directory C:\AndroidApps\BuildTemplates\build\bin
    Created directory C:\AndroidApps\BuildTemplates\build\libs
    Created directory C:\AndroidApps\BuildTemplates\build\res\values
    Added file C:\AndroidApps\BuildTemplates\build\res\values\strings.xml
    Created directory C:\AndroidApps\BuildTemplates\build\res\layout
    Added file C:\AndroidApps\BuildTemplates\build\res\layout\main.xml
    Added file C:\AndroidApps\BuildTemplates\build\AndroidManifest.xml
    Added file C:\AndroidApps\BuildTemplates\build\build.xml
    Buildfile: C:\AndroidApps\BuildTemplates\build\build.xml
        [setup] Project Target: Android 2.1
        [setup] API level: 7
    
    -compile-tested-if-test:
    
    -dirs:
         [echo] Creating output directories if needed...
        [mkdir] Created dir: C:\AndroidApps\BuildTemplates\build\gen
        [mkdir] Created dir: C:\AndroidApps\BuildTemplates\build\bin\classes
    
    -resource-src:
         [echo] Generating R.java / Manifest.java from the resources...
         [exec] libpng error: Read Error
         [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu
    ild\res\drawable-hdpi\icon.png
         [exec] libpng error: Read Error
         [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu
    ild\res\drawable-ldpi\icon.png
         [exec] libpng error: Read Error
         [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu
    ild\res\drawable-mdpi\icon.png
         [exec] C:\AndroidApps\BuildTemplates\build\AndroidManifest.xml:10: error: E
    rror: No resource found that matches the given name (at 'icon' with value '@draw
    able/icon').
    ""C:/android-sdk-windows/tools/android" create project --target android-7 --name
     PinpointersTouch --activity STActivity --path "build//" --package sbs.pinpointe
    rs.pptouch"
    Could not install application
    Failed to run packaged application
    It would appear its having trouble with the icon image I have specified in the config file. When I look at the copies of the icon in the res folder they are just blank (no images at all).

    I have made sure my icon conforms to the Android developers guide too.

    Any thoughts?

  6. #6
    Sencha User
    Join Date
    Jun 2009
    Posts
    399
    Vote Rating
    2
    parky128 is on a distinguished road

      0  

    Default


    I have even tried an image from an Android launcher icon sample pack from their developer site but still I get the same build errors as above.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi