简体   繁体   English

如何使用 android.support.v8.renderscript 进行渲染脚本

[英]How to use android.support.v8.renderscript for renderscript

I'm using intellij idea and I want to try renderscript.我正在使用 Intellij 想法,我想尝试渲染脚本。 I read everywhere that I should use android.support.v8.renderscript instead of android.renderscript.我到处都读到我应该使用 android.support.v8.renderscript 而不是 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.我对此有一个大问题,因为当我想创建一个新的 ScriptC_???(mRS) 时,它需要一个 android.renderscript.RenderScript 变体(mRS),而我找不到具有其他数据包 RenderScript 版本的构造函数。 It seem that in the automaticly generated files, it uses that package too(android.renderscript).似乎在自动生成的文件中,它也使用该包(android.renderscript)。 If I use the android.renderscript.RenderScript there then I have to use everywhere else.如果我在那里使用 android.renderscript.RenderScript 那么我必须在其他地方使用。

How could I make it to use the support.v8 package?我怎样才能使用 support.v8 包?

I've asked the question on the IDEA forum and I got this answer:我在 IDEA 论坛上问过这个问题,我得到了这个答案:

Unfortunatelly Renderscript support mode is not supported for old-style IntelliJ projects.不幸的是,旧式 IntelliJ 项目不支持 Renderscript 支持模式。 It is now available for Gradle-based (Android Studio style) projects only.它现在仅适用于基于 Gradle(Android Studio 风格)的项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM