Eclipse 停止编译 RenderScript 文件 [英] Eclipse stops compiling RenderScript file

查看:31
本文介绍了Eclipse 停止编译 RenderScript 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Android 项目中有一个 RenderScript (.rs) 文件:SomeScript.rs

I have a single RenderScript (.rs) file in my Android project: SomeScript.rs

在我开发它的过程中一直运行良好.但是后来我在 Eclipse 中清理了一个工作区,现在它似乎没有将该文件识别为 RenderScript 文件.

Which has been working fine as I've been developing it. But then I did a workspace clean inside Eclipse, and now it doesn't seem to be recognizing the file as a RenderScript file.

以前,如果我有语法错误,它会通知我有关违规行的信息.但是现在,无论我对文件做什么,它都不会生气.它也不为/gen 中的脚本生成 CScript Java 包装器.它只是错误地显示了这条神秘的消息:

Before, if I had a syntax error, it would notify me about the offending line. But now, no matter what I do to the file, it doesn't get upset. It also doesn't produce the CScript Java wrapper for the script inside /gen. It just errors out with this cryptic message:

Error executing Renderscript: Return code 1          line 1 Android AIDL Problem

一些简短的谷歌搜索没有为这个错误返回太多.有没有人见过这样的事情?我的目标是 API 级别 17.我的 SDK 和 ADT 插件是最新的.

Some brief Googling didn't return much for this error. Anyone seen anything like this before? I'm targeting API level 17. My SDK and ADT plugin are up to date.

此外,如果我创建一个全新的 .rs 文件,一切正常.直到我清理... 在两台不同的机器上也试过这个.但是,对项目进行 ANT 构建非常好,

Additionally, if I create a brand new .rs file, things work fine. Until I clean... Tried this on two different machines as well. However doing an ANT build of the project works perfectly fine,

推荐答案

发现问题.我们的版本控制软件会在您签入后锁定每个文件.Eclipse 中的构建过程要求它生成的 /res/raw/somescript.bc 文件是可写的(即使没有更改正在编写脚本).

Found the problem. Our version control software locks every file after you do a check in. The build process within Eclipse requires that the /res/raw/somescript.bc file it generates be writable (even if no changes are being made to the script).

如果它不可写,它会以非常无用的方式出错.因此,如果其他人发现此问题,请不要将 *.bc 文件检查到您的源代码管理中!

If it is not writable, it errors out in that very unhelpful way. So if anyone else finds this problem, just don't check the *.bc files into your source control!

这篇关于Eclipse 停止编译 RenderScript 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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