I got a similar problem when building with maven. I have got an apklib that 
contain xml(s) that refers to drawables in src. But when build a project 
that has got this apklib as a dependency same error. 

On Wednesday, 6 January 2010 08:37:46 UTC, Vladimir wrote:
>
> Instead of
> android:drawable="@drawable-ldpi/startstopin"
> try
> android:drawable="@drawable/startstopin"
> Just like you do for your normal HVGA screen. On small screens it will
> automatically look in the "-ldpi" directory and pick these images
> ahead of those in the default dir
>
> On Jan 5, 11:18 pm, OldSkoolMark <m...@sublimeslime.com> wrote:
> > My 1.6 app works fine in both portrait and landscape modes on the
> > default HVGA device. I'm now trying to support it on QVGA devices and
> > am encountering build-time errors I don't understand.
> >
> > In my res/drawable-ldpi directory I have:
> >
> > startstopin.png
> > startstopout.png
> >
> > and a selector file
> >
> > startstopbuttonimageselector.xml
> >
> > which contains:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> >  <selector xmlns:android="http://schemas.android.com/apk/res/android";>
> >      <item android:state_pressed="true"
> >            android:drawable="@drawable-ldpi/startstopin" /> <!--
> > pressed -->
> >      <item android:drawable="@drawable-ldpi/startstopout" /> <!--
> > default -->
> >  </selector>
> >
> > I've 'fixed project properties', and done a 'clean' build, to no
> > avail. The error I get is:
> >
> > ERROR Error: No resource found that matches the given name (at
> > 'drawable' with value '@drawable-ldpi/startstopin').
> >  ERROR Error: No resource found that matches the given name (at
> > 'drawable' with value '@drawable-ldpi/startstopout').
> >
> > I've tried adding a layout file in res/layout-small that explicitly
> > references this selector file, but this triggers a similar build error
> > and fails to address the original problem:
> >
> > ERROR Error: No resource found that matches the given name (at 'src'
> > with value '@drawable-ldpi/startstopbuttonimageselector').
> >
> > Any insight into this problem would be greatly appreciated.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to