如何使用android.support.v8。renderscript,渲染脚本

时间:2022-08-18 16:05:53

I'm using intellij idea and I want to try renderscript. I read everywhere that I should use android.support.v8.renderscript instead of android.renderscript. I have a big problem with this because when I want to create a new ScriptC_???(mRS) it demands a android.renderscript.RenderScript variant(mRS) and I can't find a constructor with the other packet RenderScript version. It seem that in the automaticly generated files, it uses that package too(android.renderscript). If I use the android.renderscript.RenderScript there then I have to use everywhere else.

我用的是intellij idea,我想试试renderscript。我到处都读到我应该使用android.support.v8。renderscript代替android.renderscript。我对此有一个大问题,因为当我想创建一个新的ScriptC_???(mRS)时,它需要一个android.renderscript。RenderScript变体(mRS)和我找不到一个具有其他包RenderScript版本的构造函数。看起来在自动生成的文件中,它也使用这个包(android.renderscript)。如果我使用android.renderscript。这里的RenderScript,我必须在其他地方使用。

How could I make it to use the support.v8 package?

我怎样才能得到支持呢?v8的包吗?

1 个解决方案

#1


1  

I've asked the question on the IDEA forum and I got this answer:

我在创意论坛上问了这个问题,我得到了这个答案:

Unfortunatelly Renderscript support mode is not supported for old-style IntelliJ projects. It is now available for Gradle-based (Android Studio style) projects only.

不幸的是,旧式IntelliJ项目并不支持Renderscript支持模式。它现在只适用于基于等级(Android Studio风格)的项目。

#1


1  

I've asked the question on the IDEA forum and I got this answer:

我在创意论坛上问了这个问题,我得到了这个答案:

Unfortunatelly Renderscript support mode is not supported for old-style IntelliJ projects. It is now available for Gradle-based (Android Studio style) projects only.

不幸的是,旧式IntelliJ项目并不支持Renderscript支持模式。它现在只适用于基于等级(Android Studio风格)的项目。