我想在Eclipse 4.2.1(Juno)中運行特定的Android項目。當我嘗試編譯它時會出現以下錯誤。無法在Eclipse中運行Android項目:.aidl錯誤
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)
我沒有在我的項目中使用任何aidl文件。
我已經安裝了最新的SDK和最新的ADT。
注:我能夠在此Eclipse中完美地運行其他項目,除此之外。 我還檢查以下鏈接沒有任何成功:
Failed to run com.android.ide.eclipse.adt.internal.build.AidlProcessor
AIDL files not building in Eclipse in random projects?
能否請您讓我們知道可能是錯的?
您是否檢查了工作區日誌,如錯誤消息所示?它說了什麼? – 2013-02-19 15:53:03
我在我的問題中粘貼了工作區日誌。 – meetpd 2013-02-20 03:59:38
這不是工作區日誌:這是logcat。看看ErrorLog視圖 – 2013-02-20 15:03:14