[英]Gradle Error while compiling renderscript
I want to make demo app with help of render script in android studio for photo processing. 我想在Android Studio中使用渲染脚本制作演示应用程序以进行照片处理。 But when i had build project it give me error of app:compileDebugRenderscript My project specification are as follows.
但是,当我构建项目时,它给了我app:compileDebugRenderscript的错误。我的项目规格如下。
compileSdkVersion 19
buildToolsVersion '19.1.0'
minSdkVersion 16
targetSdkVersion 19
renderscriptTargetApi 18
renderscriptSupportModeEnabled true
Here is the snippet of my renderscript 这是我的渲染脚本的片段
uchar4_attribute_((kernel)) bar(uint32_t x,uint32_t y) {
uchar4 ret -((uchar)x,(uchar)y,(uchar)(x+y)(uchar)255)
return ret;
}
Can you show any part of foo.rs? 您可以显示foo.rs的任何部分吗? There is an error message above that mentions missing a declaration specifier.
上面有一条错误消息,其中提到缺少声明说明符。 Did you skip a return value in the code?
您是否跳过了代码中的返回值? Can you try with just a mostly empty source file to get the build right first?
您能否仅使用一个几乎为空的源文件来尝试正确构建?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.