Tuesday, June 15, 2010

[android-developers] Re: Android Library Broken

I already tried that.

I even went as far as making sure there were jar files in that
directory and I still get the same problem.

I also tried compiling the TicTacToe sample which shows how to use the
new android-library function and it also fails the same way.

I am running on Mac so I had a diff developer try it on his Windows
box and he also gets the same problem.


On Jun 15, 3:35 pm, Xavier Ducrohet <x...@android.com> wrote:
> I meant libs _folder_ in your library project.
>
>
>
>
>
> On Tue, Jun 15, 2010 at 12:35 PM, Xavier Ducrohet <x...@android.com> 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 <b2amed...@gmail.com> 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 android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscribe@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!
>
> --
> 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment