最新的ADT软件包(adt-bundle-windows-x86-20130917)无法与RenderScript一起使用

时间:2013-09-23 16:51:36

标签: eclipse adt renderscript

此问题与以下问题有关,但更容易重现。 RenderScript support library V8 fail to compile

我的发展环境:

OS: Windows 7 32 bit/64 bit; Windows XP 32 bit; Windows 8 64bit
ADT version: Build: v22.2.1-833290
SDK Tools version: 22.2.1
SDK Built-tools version: 18.1

重现步骤:

1. Open eclipse, create a new android project (e.g. project name: test)
2. Add a .rs file (e.g. test.rs) in src/com.examples.test/
3. Eclipse will complain 
<invalid>: error: missing pragma for version in source file
<invalid>: error: missing "#pragma rs java_package_name(com.foo.bar)" in source file
4. Add 

    #pragma version(1)
    #pragma rs java_package_name(com.example.test)

into the test.rs file
5. There will still be an "red cross" on the project name indicating there're errors in the project. However, no matter how I revised the script(e.g. add the previously working script, or even delete the script) the "red cross" won't go away. The project can't run.

如果我切换回较旧的ADT套装,就没有这样的问题。 我在Windows 7,Windows XP和Windows 8中尝试了相同的过程。情况都是一样的。

有人有同样的问题吗?任何解决方案?非常感谢!

0 个答案:

没有答案