编译包含ArduinoAdkUsb的Processing草图时,build.xml会出错

tom*_*ius 10 processing android build.xml arduino adk

涉及的软件:

* Latest Android SDK (as of today - 8/29/2012) with all of the latest APIs, Tools, Extras, etc downloaded.
* Processing 2.0a8 (latest build)
* Arduino ADK libraries for Processing ("ArduinoADK-beta-001" folder)
* My system: 64-bit Windows 7
Run Code Online (Sandbox Code Playgroud)

我跟着指示 网页设置处理和Arduino的IDE和一切.我有一个Arduino Mega ADK板.我将其中一个ADK示例上传到电路板上没有任何问题.下一步是通过Processing将匹配示例上传到Android.我有一部Nexus One手机(Android版本2.3.6).

Android SDK Tools Revision 20.0.3
Installed at D:\Programs\Android SDK
Project Type: Application
Project Target:   Android 2.3.3
API level:        10
Library dependencies:
No Libraries

------------------
API<=15: Adding annotations.jar to the classpath.
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
No AIDL files to compile.
No RenderScript files to compile.
Generating resource IDs...
Generating BuildConfig class.

BUILD FAILED
D:\Programs\Android SDK\tools\ant\build.xml:679: The following error occurred while executing this line:
D:\Programs\Android SDK\tools\ant\build.xml:692: Compile failed; see the compiler error output for details.

Total time: 2 seconds
Run Code Online (Sandbox Code Playgroud)

当我上传自己的旧草图或任何其他草图时,不使用ADK,构建成功并且应用程序可以通过手机上传.我花了很多时间寻找解决方案,但到目前为止,没有运气.我在Will Scott-Jackson发布了stackoverflow中的一篇帖子(使用Android ADK与Arduino Mega ADK通信时build.xml的问题),他们似乎得到了同样的问题,但没有可行的解决方案.我不熟悉java编译过程,清单等; 因此,我没有足够的能力自己解决这个问题.任何帮助,将不胜感激.

更新:所以我能够在草图中不使用ADK库的情况下重现相同的错误.我修改了一个带有不正确的返回参数的surfaceTouchEvent并得到了同样的错误,这让我发现错误来自android工具/编译器.

Processing告诉我这个"Android工具内部的错误,请检查控制台".

Luc*_*ana 0

将您的工作区更改为新位置,然后再次尝试运行您的项目。