AIDL文件不是在随机项目中的Eclipse中构建的吗? [英] AIDL files not building in Eclipse in random projects?

查看:264
本文介绍了AIDL文件不是在随机项目中的Eclipse中构建的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些要包含在项目中的AIDL文件,但是Eclipse在不同的项目上的工作方式似乎有所不同。



我正在开发一个SDK。对于一个应用程序,在SDK android项目中,AIDL文件会生成正确的.java文件,但是在主应用程序中,Eclipse甚至没有尝试构建它。



更新:我找到了一个日志文件,上面写着:

 !ENTRY com.android.ide。 eclipse.adt 4 0 2012-04-21 19:22:11.043 
!MESSAGE无法运行源处理器
之一!堆栈0
java.lang.NullPointerException
在com.android.ide.eclipse.adt.internal.build.AidlProcessor.doCompileFiles(AidlProcessor.java:109)
(在此处包括其余堆栈...)

Joe

解决方案

好的,我不明白

在一个项目上,我可以将文件命名为 IAPPN AMEConect.aidl ,但另一个想要它为 IAPPNAMEService.aidl



我完全忘记了关于Java的严格性


I've got some AIDL files which I want to include in a project, however Eclipse seems to work differently on different projects.

I'm developing an SDK for an application, and in the SDK android project the AIDL file generates the correct .java file, but in the main application Eclipse is not even attempting to build it.

Update: I found a log file and it says this:

!ENTRY com.android.ide.eclipse.adt 4 0 2012-04-21 19:22:11.043
!MESSAGE Failed to run one of the source processor
!STACK 0
java.lang.NullPointerException
    at com.android.ide.eclipse.adt.internal.build.AidlProcessor.doCompileFiles(AidlProcessor.java:109)
(include rest of stack here...)

Joe

解决方案

Okay, I don't understand this but for some reason 12.04 of ubuntu flagged up an error.

On one project I could called the file IAPPNAMEConect.aidl but the other wanted it as IAPPNAMEService.aidl

I completely forgot about Java's strictness there

这篇关于AIDL文件不是在随机项目中的Eclipse中构建的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆