Jump to content
Ian F

error compling Android Service

Recommended Posts

I am Moving an Android Project from D10.4 to D11.2

 

Have Managed to sort Most things but when I go To compile The service that allows Backgound Activity get the following

 

[Exec Error] The command ""C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin\javac" -g -Xlint:deprecation -source 11 -target 11
-encoding UTF-8 -d "E:\Data11\M-Planter\MPlanterService\JavaClasses\MPlanterService"
-classpath "C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidSDK-2525-22.0.46141.0937\platforms\android-32\android.jar";
"c:\program files (x86)\embarcadero\studio\22.0\lib\android\Debug\core-1.5.0-rc02.jar";"c:\program files (x86)\embarcadero\studio\22.0\lib\android\Debug\fmx.jar"
--system "C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot" .\Android\Debug\MPlanterService.java .\Android\Debug\MPlanterServiceProxyInterface.java" exited with code 2.

 

any Ideas or sugestions greatl appreciated

Regards

Ian

Share this post


Link to post
2 hours ago, Ian F said:

C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot

You need jdk-11.0.14.101-hotspot. You could use Tools | Manage Platforms, and select Additional Options in the IDE to install it, then configure your Android SDKs in the SDK Manager in Delphi to modify the settings on the Java tab.

 

Once you have that right, see: https://github.com/DelphiWorlds/HowTo/tree/main/Solutions/AndroidServiceDelphi111

Edited by Dave Nottage
  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×