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

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

问题描述

我有一个单一的renderScript(.RS)的文件在我的Andr​​oid项目: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天全站免登陆