I need to use ANT with the Android build process, because in the end I need to create two versions of the application (FULL and LITE). When I created a new project using the command line tools, it generates for me all the necessary assembly files (build.xml, local.properties, build.properties and default.properties, oh, as well as proguard.cfg). My full version of the application needs a market licensing library (which is located in my $ {sdk.dir} / extras / google / market_licensing / library. Therefore, in Eclipse I determine where this library is located and it works if I run my application from Eclipse Now, if I run the ANT script in my application
${my.project-home}$ ant Buildfile: ${my.project-home}/build.xml [setup] Android SDK Tools Revision 10 [setup] Project Target: Android 2.1-update1 [setup] API level: 7 [setup] [setup] ------------------ [setup] Resolving library dependencies: BUILD FAILED ${my.project-home}/build.xml:77: ../../../android-sdk-mac_86/extras/google/market_licensing/library resolve to a path with no default.properties file for project ${my.project-home}
My default.properties options look like
target=android-7 android.library=false android.library.reference.1=../../../android-sdk-mac_86/extras/google/market_licensing/library
And my build.xml file:
<?xml version="1.0" encoding="UTF-8"?> <project name="MyMeasures"> <property file="local.properties" /> <property file="build.properties" /> <property file="default.properties" /> <import file="${sdk.dir}/tools/ant/pre_setup.xml" /> <target name="-pre-build"> </target> <target name="-pre-compile"> </target> <setup /> </project>
The only thing I do in build.xml is that I uncommented -pre-build and -pre-compile , but they do nothing ... I also tried to comment on them, and this is the same result.
Has anyone used the licensing library in the market using ant?
zmeda source share