View Full Version : Building Android app under Win w SDK Tools 2.0 Beta - prompt freezes at proguard.cfg
Hi,
I'm trying to build my first ST2 app using the SDK Tools 2.0 Beta.. I followed the tutorial 'Sencha Touch 2 Native Packaging for Android', installed the Android SDK, Ant, Java jdk, and the Sencha SDK Tools... I followed the tutorial all the way to the point where I launch the command:
C:\devdir>sencha package run gettingstarted.json
I get the lines:
Updated file C:\devdir\build\src\com\sencha2\GettingStartedPackage\STActivity.java
Updated file C:\devdir\build\res\values\strings.xml
Updated file C:\devdir\build\res\layout\main.xml
Updated file C:\devdir\build\AndroidManifest.xml
Updated file C:\devdir\build\build.xml
Updated file C:\devdir\build\proguard.cfg
... and nothing. It hangs there. What can I do to troubleshoot this?
Thanks,
Kaore
dark_night
13 Mar 2012, 6:45 AM
I have the same problem with my Sencha Touch 2 App!
chapkin
15 Mar 2012, 7:20 AM
question: does it really hang more than 2 minutes?
the thing is, after this line sencha packager copies the application into asset/www. if the app is big enough, it might take some time.
In my case I suspected a freeze, too, but then after 2 minutes it came back.
or is it a genuine freeze as in "nothing happens"?
lovemyway
20 Mar 2012, 2:34 AM
Hey,
I got the same problem - I'm trying to deploy an application to Android, but sencha package test.json command just stops after the line "Added file {path}\proguard.cfg". I've been waiting for some time hoping for it to unfreeze, but it didn't help at all.
$p00ky
23 Mar 2012, 8:14 PM
Same here.
The very first time, I got an error about stbuild.exe, reaching proguard.cfg.
Now instead of "Creating" files, it "Updates", and freezes on "Updated file C:\wamp\www\nestedTest\out\proguard.cfg".
Log:
C:\wamp\www\nestedTest>sencha package run config.json
Updated file C:\wamp\www\nestedTest\out\src\com\spooky\buxfertest\STActivity.java
Updated file C:\wamp\www\nestedTest\out\res\values\strings.xml
Updated file C:\wamp\www\nestedTest\out\res\layout\main.xml
Updated file C:\wamp\www\nestedTest\out\AndroidManifest.xml
Updated file C:\wamp\www\nestedTest\out\build.xml
Updated file C:\wamp\www\nestedTest\out\proguard.cfg
If I Ctrl+C:
""C:/android-sdk\tools\android" create project --target android-7 --name MyAppTest--activity STActivity --path C:/wamp/www/nestedTest/out\ --package com.spooky.myapptest"
Terminate batch job (Y/N)?
Any solution?
Edit: Same problem on Mac:
sh: /usr/bin/stbuild: Bad CPU type in executable.
I found the problem by running stbuild directly (not through sencha):
Can not open source fileCan not open destination file for writing
A subdirectory or file C:\wamp\www\nestedTest\out\\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out
\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\out\assets\.idea\scopes\ already exists.
Infinite loop if you define an output folder inside your web folder...
Changing the output folder elsewhere solved the problem.
kjlee203
23 Mar 2012, 11:47 PM
:s
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.