Hi all - I've started working through some of the tutorials and code examples, but I have 2 questions regarding TiStudio itself
1) every time I deploy to my Android emulator, it takes > 60 seconds, because it hangs waiting for SDcard - is there a way to either stop it from looking for an SDCard, or make it give up faster? I did try using adb to create an SDCard but it doesn't seem to have helped.
[INFO] logfile = D:\Projects\Titanium\TiBountyHunter\build.log [INFO] Building TiBountyHunter for Android ... one moment [INFO] Titanium SDK version: 2.1.0 (06/28/12 12:16 6e3cab6) [INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying CommonJS modules... [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all modules... [INFO] Compiling Javascript Resources ... [INFO] Compiling localization files [INFO] Waiting for SDCard to become available.. [ERROR] Timed out waiting for SDCard to become available (60s) [INFO] Re-launching application ... TiBountyHunter Error killing app, result: ['App not connected'] [INFO] Launching application ... TiBountyHunter2) If the emulator is running, and I encounter an error (which I do, a lot of, right now <g>) - I go back into TiStudio, make my change, save my .js file - and right now the only way I can see to push the latest code to the emulator, is to chose "Clean" and then rebuild - which takes a long time. Is there a better/faster way?
thanks!
2 Answers
To me it's the same with the message of waiting for the SDCARD. I read in some tutorial on android that to develop better connect a physical device instead of using the emulator.
Someone is bound to chime in and argue with this, chiming in 'it works all the time for me' but just sharing what I have learned and what has worked after wasting too much time:
- On win32, run from C:
- no spaces in your files or your folders.
- Be sure your android environment actually is setup properly by trying to start the emulator from outside of Titanium. (if you are going to be an android developer, learn the android utilities included in the sdk)
- permissions are a big deal, be sure all your writable folders actually have writable permissions (this is a new concept in windows)
Your Answer
Think you can help? Login to answer this question!