hmm this is strange. The warning is normal but it should still work.

We're fixing this for the next version of the tools, but as Dianne
said, 2.0.1 is considered obsolete and there's no point targeting it.
You can target 2.1 (API 7).

Xav

On Tue, Sep 21, 2010 at 6:47 AM, Leigh McRae
<leigh.mc...@lonedwarfgames.com> wrote:
> I have updated my tools to revision 7 and now I can't do a build as it
> says the API level is obsolete.  I can understand warning but it won't
> build at all.  I am using android.bat to generate a build.xml for
> release versions.  So the build.xml gets made from scratch each time.
> If I switch to --target 8 it builds but I have already released it on
> the Android Market with 6.  Won't this mean that some people that have
> Android 2.0.1 won't be able to run it?
>
> android update project --name Tanks --target 6 --path $
> {dist.project.dir}
>
>    [setup] Android SDK Tools Revision 7
>    [setup] Project Target: Android 2.0
>    [setup] API level: 5
>    [setup]
>    [setup]
>    [setup]
>    [setup]
> ***********************************************************
>    [setup] WARNING: This platform is obsolete and its Ant rules may
> not work properly.
>    [setup] WARNING: It is recommended to develop against a newer
> version of Android.
>    [setup] WARNING: For more information about active versions of
> Android see:
>    [setup] WARNING: 
> http://developer.android.com/resources/dashboard/platform-versions.html
>    [setup]
> ***********************************************************
>    [setup]
>    [setup]
>    [setup]
>    [setup]
>    [setup] ------------------
>    [setup] Resolving library dependencies:
>    [setup] ------------------
>    [setup] Ordered libraries:
>    [setup] ------------------
>    [setup]
>
> BUILD FAILED
> D:\Android\build.xml:68: The following error occurred while executing
> this line:
> D:\Android\build.xml:215: The following error occurred while executing
> this line:
> D:\Android\dist\market-lite\build.xml:82: Build rules file 'D:\Program
> Files\android-sdk-windows\tools\ant\android_rules.xml' is missing.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.

Please do not send me questions directly. Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to