I want to use a variable ${sdk.dir}in the project.properties file, so I can check this for version control and use the same file on different installation machines.
My working setup is as follows:
My project.properties :
target=android-18
android.library.reference.1=..\\..\\..\\sdk\\extras\\android\\support\\v7\\appcompat
android.library.reference.2=..\\..\\..\\sdk\\extras\\google\\google_play_services\\libproject\\google-play-services_lib
My local.properties :
sdk.dir=C:\\adt-bundle-windows-x86_64-20130917\\sdk
this setting is compiled using ant from the command line. but when I replace ..\\..\\..\\with ${sdk.dir}, I get an error:
project.properties , as I want:
target=android-18
android.library.reference.1=${sdk.dir}\\extras\\android\\support\\v7\\appcompat
android.library.reference.2=${sdk.dir}\\extras\\google\\google_play_services\\libproject\\google-play-services_lib
leads to:
BUILD FAILED
C:\adt-bundle-windows-x86_64-20130917\sdk\tools\ant\build.xml:460:
Failed to resolve library path:
C:\adt-bundle-windows-x86_64-20130917\sdk\extras\android\support\v7\appcompat
therefore, the variable ${sdk.dir}is replaced correctly, but for some reason it cannot be resolved. Any ideas?
update Change
proGuard (project.properties) , -:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt