LC 9 problem

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

LC 9 problem

Post by Peter@multidesk.se » Tue Aug 08, 2017 10:27 am

I have used the LC 8.1.6 and have tested my app on my samsung phone without problems, but when I want to build the app with LC 9 to use the remote debugger, the app crashes on startup. I have tested with a one-card app with a single button, on two different computers and got the same result

I'm developing on mac.

Is this a known bug, or is it only me who has this problem?


/// Peter
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: LC 9 problem

Post by LiveCode_Panos » Tue Aug 08, 2017 10:53 am

Hi Peter,

Which version of LC 9 are you using? I do not see that problem in the latest build (9 DP-8).

If you were using DP-7, you were probably affected by this bug: http://quality.livecode.com/show_bug.cgi?id=19931

Best,
Panos
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: LC 9 problem

Post by Peter@multidesk.se » Tue Aug 08, 2017 12:06 pm

Panos,

I have tried LC 9. DP-7 before, but now I tried DP_8, and the same problem persists.

///Peter
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: LC 9 problem

Post by LiveCode_Panos » Tue Aug 08, 2017 1:23 pm

Hi Peter,

Hmm that's interesting. Could you attach here the simple stack that exhibits the problem for you?

Best,
Panos
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: LC 9 problem

Post by Peter@multidesk.se » Tue Aug 08, 2017 2:18 pm

Panos,

I have tried every possible way to see what the error may be, but I found nothing obvious, finally, I tested this.
It is the simplest of stacks, 1 card with 1 button. And it still did not work!


///Peter
Attachments
Untitled 2.livecode.zip
(1.55 KiB) Downloaded 185 times
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: LC 9 problem

Post by LiveCode_Panos » Tue Aug 08, 2017 3:08 pm

Hi Peter,

Thanks for the stack. I can successfully build an Android standalone from the attached stack, and install in my Nexus 4 phone (running Android 5.0) using LC 9.0 DP-8.

Could you give us some more details?

1. What is your device, and what Android version is it running?
2. Do you see that bug on a different device?
3. You said everything works as expected with exactly the same setup in LC 8.1.6, is that correct?
4. Does the app *crash* on startup, or it quits? (if it crashes you should be getting a "Unfortunately, test2 has stopped" message on startup)
5. Are you using Android Studio (which version?) or just the Android SDK Tools (which version?)

Best,
Panos
--

Peter@multidesk.se
Posts: 136
Joined: Fri Oct 14, 2011 6:53 am

Re: LC 9 problem

Post by Peter@multidesk.se » Wed Aug 09, 2017 7:45 am

Panos

1. I have a Samsung Galaxy s6 edge and run Android version 7.0
2. I have not tested on any other Android device
3. That is correct, In LC 8.1.6 everything works, but the app crashes when I distribute it to my phone using LC 9
4. It crashes, I get "Unfortunately, test2 has stopped" on start-up
5. I am using Android SDK tools 26.0.1

///Peter
/*Whats all the fuss with c# ?*/

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: LC 9 problem

Post by LiveCode_Panos » Wed Aug 09, 2017 2:44 pm

Hi Peter,

Thank you for the info. I have just tested on an Android 7.0 device and the attached stack does not crash for me (using LiveCode 9.0 DP-8).

I am wondering if the version of the Android SDK Tools you have installed makes any difference.

Here is what I have installed, which work as expected with all versions of LC 6, 7, 8, 9:

Android SDK Tools: 24.4.1
Android SDK Platform-Tools: 23.1
Android SDK Build-Tools: 19.1

You could uninstall your current Android SDK tools 26.0.1 and install an older one (e.g. the one I have, Android SDK Tools: 24.4.1).
The same applies to Android SDK Platform-Tools and Android SDK Build-Tools.

Hope this helps,
Panos
--

Post Reply

Return to “Android Deployment”