Problems compiling for Google Play

You must Login before you can answer or comment on any questions.

Hi,

Android:

I just finished an app and I'd like to submit it to google play.

The app runs fine in emulator and on device, but when I package it for deployment the app breaks.

Some actions causes immediate crashes, others give runtime errors. Strange thing is that even though a file and a linenumber is mentioned, the code shown as the source of the error is not mine.

I am compiling using TiSDK 2.1.1, 'cause 2.1.3 is regressing so bad that the app has errors no matter how I build it.

Does anyone experience the same, and does anyone have any tips?

— asked 8 months ago by Esben Maaløe
6 Comments
  • Here's my sys-info:

    Host OS: Linux OS Arch: x86 JRE Version: 1.6.0_25 JRE Vendor: Sun Microsystems Inc. JRE Home: /usr/lib/jvm/jdk1.6.0_25/jre Install Directory: file:/home/esm/bin/Titanium_Studio/ Version: 2.1.2.201208301612 VM Arguments: -Xms40m -Xmx1024m -Declipse.p2.unsignedPolicy=allow -Declipse.log.size.max=10000 -Declipse.log.backup.max=5 -Djava.awt.headless=true -XX:MaxPermSize=256m -Djava.class.path=/home/esm/bin/Titanium_Studio//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

    Workspace Directory: file:/home/esm/Documents/Dropbox/Titanium Studio Workspace/ Language: en_US

    Titanium Mobile SDK Version: 2.1.1 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 07/27/12 14:01 Mobile SDK Build Number: 0fd84a2 Titanium Mobile SDK Location: /home/esm/.titanium/mobilesdk/linux/2.1.1.GA

    Titanium Mobile SDK Version: 2.1.3 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 10/02/12 16:16 Mobile SDK Build Number: 15997d0 Titanium Mobile SDK Location: /home/esm/.titanium/mobilesdk/linux/2.1.3.GA

    Titanium Mobile SDK Version: 2.1.2 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 08/24/12 14:46 Mobile SDK Build Number: ed7f777 Titanium Mobile SDK Location: /home/esm/.titanium/mobilesdk/linux/2.1.2.GA

    Titanium Mobile SDK Version: 2.1.0 Mobile SDK Modules API Version:2 Mobile SDK Timestamp: 06/28/12 12:16 Mobile SDK Build Number: 6e3cab6 Titanium Mobile SDK Location: /home/esm/.titanium/mobilesdk/linux/2.1.0.GA

    — commented 8 months ago by Esben Maaløe

  • Just realised:

    the runtime error points to the very last line of my source file, that line contains nothing but a closing bracket ( } )

    — commented 8 months ago by Esben Maaløe

  • Hi Esben, What is the error message exactly?

    — commented 8 months ago by Ashish Nigam

  • Show 3 more comments

1 Answer

Hi Esben, cann't say for sure as information provided is limited and would require a code analysis but did you checked your .js for some special characters as i used to get such errors in Java programs while compiling them in linux.

I hope this helps.

— answered 8 months ago by Perminder Singh Bhatia
answer permalink
5 Comments
  • Well to be quite honest, I refuse the notion that anything should be wrong with my source. It's written in Titanium Studio, uses \n for linebreaks and it works! It works in emulator and when compiled directly to device. It's only when packaging the problems arise :/

    — commented 8 months ago by Esben Maaløe

  • Well in that case i would suggest you log an issue in Appcelerator Jira. I tried searching for similar issue there but there is sea of packaging issues and don't have time to dive in it.

    I hope you get your issue resolved there.

    — commented 8 months ago by Perminder Singh Bhatia

  • Thank you Perminder, however I don't think I will. I just lost my job because of 'failure to deliver' ... and I've spent way to much time the past 12 months burning my fingers on Ti.

    Hopefully it will mature in to a 'works as advertised' project one day, but the constant regressions and weird bugs are just too much at this time, and submitting a ticket for a problem that should've been caught on release-testing, just to have said ticket ignored, isn't such a thrilling prospect ....

    — commented 8 months ago by Esben Maaløe

  • Show 2 more comments

Your Answer

Think you can help? Login to answer this question!