I just re-read your post.

I was creating a libs folder in my application project not my library
project.

As soon as I created a libs fodler in the library project it worked.

Thanks,

On Jun 15, 3:35 pm, Xavier Ducrohet <[email protected]> wrote:
> I meant libs _folder_ in your library project.
>
>
>
>
>
> On Tue, Jun 15, 2010 at 12:35 PM, Xavier Ducrohet <[email protected]> wrote:
> > make sure you have the "libs" project in your library project (even if
> > it's empty)
>
> > This is fixed for the next version.
>
> > On Tue, Jun 15, 2010 at 12:25 PM, b2amedina <[email protected]> wrote:
> >> Has anyone been able to get an APK that uses an android library to
> >> compile using ant?
>
> >> This works fine from eclipse but from the command line I always get a
> >> null pointer exception:
>
> >> Buildfile: build.xml
> >>    [setup] Android SDK Tools Revision 6
>
> >> BUILD FAILED
> >> java.lang.NullPointerException
> >>        at
> >> com.android.ant.SetupTask.processReferencedLibraries(SetupTask.java:
> >> 473)
> >>        at com.android.ant.SetupTask.execute(SetupTask.java:200)
> >>        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
> >> 288)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> >> 39)
> >>        at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> >>  l.java:
> >> 25)
> >>        at java.lang.reflect.Method.invoke(Method.java:597)
> >>        at
> >> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
> >> 106)
> >>        at org.apache.tools.ant.Task.perform(Task.java:348)
> >>        at org.apache.tools.ant.Target.execute(Target.java:357)
> >>        at
> >> org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:
> >> 142)
> >>        at
> >> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:
> >> 93)
> >>        at org.apache.tools.ant.Main.runBuild(Main.java:743)
> >>        at org.apache.tools.ant.Main.startAnt(Main.java:217)
> >>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
> >>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
> >> Total time: 0 seconds
>
> >> The source code for sdk 6 is also not available.
>
> >> --
> >> 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
>
> > --
> > Xavier Ducrohet
> > Android SDK Tech Lead
> > Google Inc.
>
> > Please do not send me questions directly. Thanks!
>
> --
> 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 [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

Reply via email to