Error compiling Android Delphi - 10 on Windows 10

I'm having a problem compiling for android on delphi-10, follows error

[Exec Error] the command " PATH C:\Program Files \ Java \ jdk1.7. 0_79\bin;C:\Users\Public\Documents\Embarcadero\Studio.0 \ Bpl;C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBaseXE7\IDE_spoof;C:\Program Files \ Java\jdk1.7. 0_79\bin; & "C:\Users\jeffe\Documents\Embarcadero\Studio.0 \ PlatformSDKs \ android-sdk-windows\build-tools.0.1 \ dx.bat 'de dex -- output='C:\Users\jeffe\OneDrive\Programação\Mobile\ads100\Android\Debug\classes.dex" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug \ google-play-services.dex.jar" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug\google-play-licensing.dex.jar" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug\google-play-billing.dex.jar" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug \ google-analytics-v2.dex.jar" "c:\program files (x86) \ embarcadero \ studio.0 \ lib \ Android\Debug \ fmx.dex.jar" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug \ cloud-messaging.dex.jar" "c:\program files(x86)\embarcadero \ studio.0\lib\Android\Debug \ apk-expansion.dex.jar" "c:\program files(x86)\embarcadero \ studio.0 \ lib \ Android\Debug \ android-support-v4.dex.jar "" exited with code 3.

Author: Edu Mendonça, 2015-12-11

3 answers

My case was similar, with the same message I updated to java versão 8

In tools>>options>>sdk manager Enter java and set to the new folder C:\Program Files\Java\jdk1.8.0_101\bin\keytool.exe and the other to the same folder, it worked for me.

 2
Author: Luiz, 2016-08-10 02:24:11

With me I solved this problem in Delphi Berlin as follows: In the PROJECT MANAGER screen (on the right) go to Android SDK - - - > > CONFIGURATION and make sure that the Application Store option is disabled leaving the other existing option enabled, then just below in LIBRARIES right click on each option listed and disable.

 2
Author: Lisero, 2016-08-17 23:51:30

Try updating java as Mr. Luiz's answer if it doesn't work try also updating the SDk and NDK the path is: Tools > Options > Environment Options > SDK Manager. in the tabs SDk and NDK and Java check if you have any item marked in red or with a small tag with an exclamation mark. After updates return to normal.

 1
Author: Edu Mendonça, 2017-11-01 11:53:50