Gradle breaks Android building

Just starting out? Need help? Post your questions and find answers here.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

I installed Microsoft's jdk11 by selecting options without changing the environment (path, jar association, etc.).
I put the path in Ide sb. The build goes on but still ends with an error. I don't have the function to copy the protocol from the monitoring window and the window itself is very small.
I checked 2.40 for control. The build is fine.
The environment for jdk8 is saved in the system.
2B or not 2B = FF
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Gradle breaks Android building

Post by Fred »

Did you reboot in between ? Gradle stays in memory IIRC, so that might be it
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

Yes, rebooted.
p.s. I will set up a test computer with a clean jdk11 installation later. For now, it is important for me to keep 2.40 functional.
p.p.s. It is desirable to get the function of copying the build protocol. Rewriting a large number of messages from a small window is not convenient.
2B or not 2B = FF
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

Also @Fred what do you use as the source of the JDK11 installation? My point is that at this point, it is desirable to test in the same environment.
2B or not 2B = FF
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

Attempting to use the CLI for more informative diagnostics is hampered by the mandatory requirement of /RESOURCEDIRECTORY.
Compiling 'CG.sb'
Loading libraries...
Starting compilation...
181 lines processed.
No resource directory specified.

It is not clear what to specify. In the GUI, this parameter can be ignored.
2B or not 2B = FF
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: Gradle breaks Android building

Post by Fred »

Just put any empty dir
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

d:\Temp\sbt>c:\Sys\SB240\Compilers\sbcompiler CG.sb /DEBUGGER /PACKAGEID "su.mvit.test" /JDK "c:\Program Files\Java\jdk1.8.0_281\" /RESOURCEDIRECTORY "d:\Temp\temp\" /OUTPUT "CG.apk"

******************************************
SpiderBasic 2.40 (Windows - x86)
******************************************

Compiling 'CG.sb'
Loading libraries...
Starting compilation...
181 lines processed.
No resource directory specified.
===========
d:\Temp\sbt>c:\Sys\SB240\Compilers\sbcompiler CG.sb /DEBUGGER /PACKAGEID "su.mvit.test" /JDK "c:\Program Files\Java\jdk1.8.0_281\" /OUTPUT "CG.apk"

******************************************
SpiderBasic 2.40 (Windows - x86)
******************************************

Compiling 'CG.sb'
Loading libraries...
Starting compilation...
181 lines processed.
No resource directory specified.
====================
I intentionally try to test the CLI on something that is known to work (2.40)
p.s. /RESOURCEDIRECTORY (-rd, --resourcedirectory) "path": the directory where all the app resources are located.
without a working example is not informative
p.p.s. The [save command line] button corresponding to the filled in fields would be helpful in the gui create app.
2B or not 2B = FF
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

!!!
On a clean computer with MsOpenJdk11 installed and the Java environment fully configured, everything builds successfully.
And Apk successfully tested on Android 5.1 (MEIZU M3s)
!!!
p.s. To work together, 8 and 11 need to understand how to switch environment settings.
2B or not 2B = FF
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: Gradle breaks Android building

Post by Paul »

Under Preferences, select Compiler and enter the Path of the JDK.

The description is a little misleading since JDK 11 is required for 2.50 and the text reads JDK 9+ not supported.

Image

IN the IDE for 2.40 you would enter your other JDK version, etc.
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: Gradle breaks Android building

Post by useful »

Paul wrote: Thu May 25, 2023 7:48 pm ...
IN the IDE for 2.40 you would enter your other JDK version, etc.
Are you writing about an obvious theoretical possibility?
Or do you personally have two versions of JDK and SB working correctly on the same system?
2B or not 2B = FF
Post Reply