Hi ,
I am very new on Delphi and this forum.
I am trying to test a demo for Android service which is located in :
C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidNotificationServiceDemo
When I compile the service, I have the message :
Build started 12/09/2018 10:47:40.
__________________________________________________
Project "C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidNotificationServiceDemo\NotificationService\NotificationService.dproj" (Build target(s)):
Target BuildVersionResource:
c:\program files (x86)\embarcadero\studio\19.0\bin\cgrc.exe -c65001 "NotificationService.vrc" -foNotificationService.res
CodeGear Resource Compiler/Binder
Version 1.2.2 Copyright (c) 2008-2012 Embarcadero Technologies Inc.
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Suppression du fichier "NotificationService.vrc".
Target BuildAndroidServiceJarFile:
"\bin\javac" -d "C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidNotificationServiceDemo\NotificationService\JavaClasses\NotificationService" -Xlint:deprecation -classpath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar";"c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\fmx.jar" -bootclasspath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar" -encoding UTF-8 -target 1.6 -g -source 1.6 .\Android\Debug\NotificationService.java .\Android\Debug\NotificationServiceProxyInterface.java
Le chemin d'accès spécifié est introuvable.
c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(811,5): error MSB3073: La commande ""\bin\javac" -d "C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidNotificationServiceDemo\NotificationService\JavaClasses\NotificationService" -Xlint:deprecation -classpath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar";"c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\fmx.jar" -bootclasspath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar" -encoding UTF-8 -target 1.6 -g -source 1.6 .\Android\Debug\NotificationService.java .\Android\Debug\NotificationServiceProxyInterface.java"
s'est arrêtée avec le code 3.
Done building target "BuildAndroidServiceJarFile" in project "NotificationService.dproj" -- FAILED.
Done building project "NotificationService.dproj" -- FAILED.
Build FAILED.
c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(811,5): error MSB3073: La commande ""\bin\javac" -d "C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\Device Sensors and Services\AndroidNotificationServiceDemo\NotificationService\JavaClasses\NotificationService" -Xlint:deprecation -classpath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar";"c:\program files (x86)\embarcadero\studio\19.0\lib\Android\Debug\fmx.jar" -bootclasspath "C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.31059.3231\platforms\android-28\android.jar" -encoding UTF-8 -target 1.6 -g -source 1.6 .\Android\Debug\NotificationService.java .\Android\Debug\NotificationServiceProxyInterface.java" s'est arrêtée avec le code 3.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.18
When I run the command from windows command line replacing the relative path for NotificationServiceProxyInterface.java and NotificationService.java by the full path, the command works perfectly (No errors).
I looked on the forum and found a similar topic opened on Nov, 28, 2016 by Luca Pretti : Error compiling Android Services Demo with Delphi 10.1 Berlin (
forums.embarcadero.com/message.jspa?messageID=868914
).
It was closed telling that the problem were coming from the build tool used by the IDE.
I tried (using Tools\Options\SDK Manager) to point on build tool 22 and 28 (The last available) and the problem is the same in both case.
Is there a way to tell IDE to use absolute path instead of relative path when compiling ?
Or does anyone know how to solve this problem ?
Thanks in advance for your help;