Problem building Android app - 'could not compile service support class' error message

Ralph DiMola rdimola at evergreeninfo.net
Tue Jan 22 18:25:59 EST 2019


Your just about there. Look at "the result" from the executeShellCommand. That where more detailed error info will be.
Just put a "Put the result" after the executeShellCommand

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Terry Judd via use-livecode
Sent: Tuesday, January 22, 2019 6:13 PM
To: How to use LiveCode
Cc: Terry Judd
Subject: Re: Problem building Android app - 'could not compile service support class' error message

Seems like I didn't look hard enough - I found it in revsavesasandroidstandalone.livecodescript in the revSaveAsMobileStandaloneMain command script. The relevant bit is...


executeShellCommand pathToJavaC(), "-target 1.5 -source 1.5 -Xlint:none -d", tClassesBuildFolder, "-cp", tClassPath, tClassFile if the result is not empty then
   throw "could not compile service support class"
end if

...which doesn't really mean a lot to me. I tried adding a breakpoint so I could see what was in those various parameters but that didn't fire when I tried to build the app.

Terry...

On 23/01/2019 9:59 am, "use-livecode on behalf of Terry Judd via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    Thanks Ralph - so, I enabled the Livecode UI stacks in the pref window and then used the find window to search for the error string (or part of it at least) but no results were returned. I also had a poke/search around in a couple of rev stacks with Android in their names but I was none the wiser after that either.
    
    At least I have one dev machine that it works on I guess. It used to work on the Macbook Air as well but something seems to have gone amiss along the way, probably when I was required to update my Android install. I thought starting from scratch installing Android Studio and making sure the correct SDKs were installed would help but the same error occurs.
    
    Terry...
    
    On 23/01/2019 8:12 am, "Ralph DiMola via use-livecode" <use-livecode at lists.runrev.com> wrote:
    
        I've seen similar messages when building for mobile. I enable the IDE stacks in prefs then search for the error string and look at the result of the previous operation. Usually the reason for the fail is apparent. Not pretty but fast. (one of the advantages of having the IDE written in LCS)
        
        Ralph DiMola
        IT Director
        Evergreen Information Services
        rdimola at evergreeninfo.net
        
        
        -----Original Message-----
        From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Terry Judd via use-livecode
        Sent: Tuesday, January 22, 2019 4:02 PM
        To: How to use LiveCode
        Cc: Terry Judd
        Subject: Problem building Android app - 'could not compile service support class' error message
        
        I’m having a problem building/testing an Android app on one of my two development laptops (Macbook Air, LC 9.0.2, OSX Yosemite) – it comes up with the following error message...
        
        Unable to build app for testing: could not compile service support class.
        
        It seems to work fine on another laptop with a similar setup (the only difference being that it is running OSX Mojave) – same Android Studio setup and Java version installed.
        
        Any ideas?
        
        Terry...
        _______________________________________________
        use-livecode mailing list
        use-livecode at lists.runrev.com
        Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
        http://lists.runrev.com/mailman/listinfo/use-livecode
        
        
        _______________________________________________
        use-livecode mailing list
        use-livecode at lists.runrev.com
        Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
        http://lists.runrev.com/mailman/listinfo/use-livecode
        
    
    _______________________________________________
    use-livecode mailing list
    use-livecode at lists.runrev.com
    Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
    http://lists.runrev.com/mailman/listinfo/use-livecode
    

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list