4
I’m having a problem to compile for android on Delphi-10, follow the 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" -Dex --output="C: Users Jeffe Onedrive Mobile Programming 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.
Check if you have the proper permissions for these folders, compiling in Delphi consists of Generate Executable/APK and for that you need permission!
– Junior Moreira
Maybe it’s not the problem, but I found something strange, your Delphi is 32bit right? You should install java 32bit too, or I’m wrong?
– Guilherme Nascimento
From what I saw in comments on the net, the problem is in the path of the java path in environment variables, but I tried to add did not work, and sample apps work normally this is stranger
– Jefferson Mello Olynyki
Set the PATH variable to: type
Windows + R
> typhooncontrol
and press enter >Sistema
>Configurações avançadas de sistema
> inPropriedades do Sistema
go p/ tabAvançado
>Variáveis de Ambiente...
> in -Variáveis do Sistema
- > edit the variablePATH
> put the value: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;
or access: http://answall.com/questions/96317/android-studio-n%C3%A3o-encontra-jdk-durante-instala%C3%A7%C3%A3o-como-resolver/127470– user28366
In my case just uninstall java 9 and returned to normal
– andre albernaz