gpt4 book ai didi

android - 编译渲染脚本时出现 Gradle 错误

转载 作者:行者123 更新时间:2023-11-30 01:36:40 26 4
gpt4 key购买 nike

我想在 android studio 中的渲染脚本的帮助下制作演示应用程序以进行照片处理。但是当我构建项目时它给我错误 app:compileDebugRenderscript我的项目规范如下。

compileSdkVersion 19
buildToolsVersion '19.1.0'

minSdkVersion 16
targetSdkVersion 19
renderscriptTargetApi 18
renderscriptSupportModeEnabled true

enter image description here

这是我的渲染脚本的 fragment

uchar4_attribute_((kernel)) bar(uint32_t x,uint32_t y) {
uchar4 ret -((uchar)x,(uchar)y,(uchar)(x+y)(uchar)255)
return ret;
}

最佳答案

你能展示 foo.rs 的任何部分吗?上面有一条错误消息提到缺少声明说明符。您是否跳过了代码中的返回值?您能否尝试仅使用几乎为空的源文件来首先正确构建?

关于android - 编译渲染脚本时出现 Gradle 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35020912/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com