The NPE indicates that your project is configured with some source
folders that don't actually exist.

Do you have a gen folder? Eclipse should create it if it's not there,
but it could not be there maybe?

I'll guard against the NPE (https://review.source.android.com/21721 )
but if it's gen that cannot be created something else might be going
on.

Xav

On Thu, Mar 10, 2011 at 4:27 PM, Nathan <[email protected]> wrote:
> Since ADT 10, I have been trying to get a build to work with Eclipse
> for a week now. It is getting extremely frustrating.
>
> I installed Eclipse 3.6.2 as instructed. I installed ADT 10. I
> recreated a library project from existing source. I got that to
> build.
>
> Now I tried creating a project that depends on said library - also
> from existing source.  Won't build because it won't generate the R
> file - again.
>
> Now, aapt is crashing frequently.
>
> I keep getting "aapt has failed. Windows is searching for a solution
> to the problem."
>
> When I check the error log, I get the error below.
>
> Nathan
>
> java.lang.NullPointerException
>        at
> com.android.ide.eclipse.adt.internal.build.AidlProcessor.doCompileFiles(AidlProcessor.java:
> 108)
>        at
> com.android.ide.eclipse.adt.internal.build.SourceProcessor.compileFiles(SourceProcessor.java:
> 242)
>        at
> com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:
> 476)
>        at org.eclipse.core.internal.events.BuildManager
> $2.run(BuildManager.java:629)
>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>        at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 172)
>        at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 203)
>        at org.eclipse.core.internal.events.BuildManager
> $1.run(BuildManager.java:255)
>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>        at
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:
> 258)
>        at
> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:
> 311)
>        at
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:
> 343)
>        at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:
> 144)
>        at
> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:
> 242)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> --
> 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.
http://developer.android.com | http://tools.android.com

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