I have an android project which has an Ant buildfile. It works great via the command-line:
rascher@coltrane:~/git/$ ant
Buildfile: build.xml
[setup] Android SDK Tools Revision 8
[setup] Project Target: Android 2.1-update1
[setup] API level: 7
[setup]
... etc etc etc ...
But when I try to use this in eclipse, build.xml
has a red-X.
<?xml version="1.0" encoding="UTF-8"?>
<project name="MyWonderfulProject" default="help">
<project
is underlined with the error: Default target help does not exist in this project
It seems like everybody else on the internet has this issue, and it seems to be caused by the fact that build.xml
is using directives that come from the multiple nested android-specific files that this buildfile imports.
I have other projects in my workspace that use Eclipse's build mechanism, so I know that my environment is able to compile, run, and deploy Android applications without an issue. But this buildfile is giving me headaches.
What is the fix?
Cannot find ${sdk.dir}/platforms/${target}/templates/android_rules.xml imported from ...
. When I hover over the variables in the editor, the correct values pop up. But the Ant perspective doesn't seem to do that substitution. Help? – Reardon