Eclipse stops compiling RenderScript file

让人想犯罪 __ 提交于 2019-12-07 07:13:25

问题


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

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.

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

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.

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,


回答1:


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).

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!



来源:https://stackoverflow.com/questions/14992795/eclipse-stops-compiling-renderscript-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!