Set-up RenderScript in Android Studio

后端 未结 2 1208
既然无缘
既然无缘 2021-01-03 16:40

I\'m desperately trying to set-up RenderScript in Android Studio. According to this manual http://developer.android.com/guide/topics/renderscript/compute.html#ide-setup I ha

2条回答
  •  礼貌的吻别
    2021-01-03 17:32

    There was a bug related to renderscriptTargetApi 21+. This has now been fixed in gradle-plugin 2.1.0 and Build-Tools 23.0.3. Use the code below:

    buildscript {
        repositories {
            jcenter()
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.1.0'
        }
    }
    
    
    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.3"
        ...
    }
    

    The documentation for IDE setup has also been corrected: http://developer.android.com/guide/topics/renderscript/compute.html#ide-setup

提交回复
热议问题