0

I am trying to run a particular Android project in Eclipse 4.2.1(Juno). And it is giving following error when I try to compile it.

Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor. Check workspace log for detail.

java.lang.NullPointerException
    at com.android.ide.eclipse.adt.internal.build.AidlProcessor.doCompileFiles(AidlProcessor.java:116)
    at com.android.ide.eclipse.adt.internal.build.SourceProcessor.compileFiles(SourceProcessor.java:245)
    at com.android.ide.eclipse.adt.internal.build.builders.PreCompilerBuilder.build(PreCompilerBuilder.java:679)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

I haven't used any aidl file in my project.

I have installed latest SDK and latest ADT.

NOTE: I am able to run other projects perfectly fine in this Eclipse, except this one. I have also checked following links without any success:

Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor

AIDL files not building in Eclipse in random projects?

Can you please let us know what could be wrong?

Community
  • 1
  • 1
meetpd
  • 9,150
  • 21
  • 71
  • 119

3 Answers3

0

Try to clean your eclipse C:\path\to\eclipse\eclipse -clean

Narendra
  • 609
  • 1
  • 12
  • 28
0

Finally solved this by creating a new project and copied all files in it. Then it worked fine.

meetpd
  • 9,150
  • 21
  • 71
  • 119
0

It worked out for me hope it works for you as well.

  1. Delete the project from eclipse, go to your project directory, delete .settings and .classpath.
  2. Refresh the directory and import the project again in the eclipse.
Zong
  • 6,160
  • 5
  • 32
  • 46