编译包含ArduinoAdkUsb的Processing sketch时,android – build.xml会出错

涉及的软件:
* 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

我遵循说明on网页来设置Processing和Arduino IDE等等.我有一个Arduino Mega ADK板.我向董事会上传了一个ADK示例,没有任何问题.下一步是通过处理将匹配的示例上传到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

当我上传我自己的老草图或任何其他素描,不使用ADK,构建是成功的,应用程序在手机上.
我花了很多时间寻找解决方案,但到目前为止,没有运气.
我在Will Scott-Jackson(Problems with build.xml when using the Android ADK to communicate with an Arduino Mega ADK)发布的一个stackoverflow中发现一个帖子,他似乎得到了完全相同的问题,但没有工作的解决方案.
我不熟悉java编译过程,清单等;因此,我自己无力解决这个问题.任何帮助将不胜感激.

更新:
所以我能够在草图中使用ADK库的同时重现同样的错误.我修改了一个surfaceTouchEvent与不正确的返回参数,并得到相同的错误,这导致我弄清楚,这个错误来自于android工具/编译器.

处理程序告诉我这个“Android工具里面的错误,检查控制台”.

解决方法

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

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...