With the 2.3 SDK installed I cannot ant to work correctly on any of
my library projects.
Even starting from scratch:
android create lib-project --package com.test.test --target 8 --path
testLib
when I try to: ant compile
I get this error:
Buildfile: /Development/scratch/testLib/build.xml
[setup] Android SDK Tools Revision 8
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.1-update1
[setup] API level: 7
[setup] Project Type: Android Library
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: No minSdkVersion value set. Application will
install on all Android versions.
[setup]
[setup] Importing rules file: tools/ant/lib_rules.xml
-dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: /Development/scratch/testLib/gen
[mkdir] Created dir: /Development/scratch/testLib/bin/classes
-pre-build:
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-aidl:
[echo] Compiling aidl files into Java classes...
BUILD FAILED
/Development/SDKs/android-sdk-mac_86/tools/ant/lib_rules.xml:121:
Reference android.libraries.src not found.
These rules and paths need to be appear to be set from (as seen in
build.xml):
<!-- Execute the Android Setup task that will setup some
properties
specific to the target, and import the build rules files.
The rules file is imported from
<SDK>/platforms/<target_platform>/ant/ant_rules_r#.xml
1) The target does not seem to be being obeyed correctly, i said it
should build against 8 and it says its building against 7
2) The only folder without the path (<SDK>/platforms/
<target_platform>/ant/ant_rules_r#.xml) is the most recent api (9)
Please Help, this is keeping me from building multiple applications
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en