Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.0 Preview 2 issue with Renderscript

I updated Android Studio to 2.0 Preview 2, then I got an error Renderscript support mode is not currently supported with renderscript target 21+

I'm using renderscriptTargetApi 23

like image 217
atabouraya Avatar asked Dec 05 '15 21:12

atabouraya


2 Answers

Renderscript isn't currently supported with Target 21+ so simply change the target to API 20 and that should solve the error. So the renderscript related options in your default config section of your gradle file should like :

renderscriptTargetApi 20
renderscriptSupportModeEnabled true
like image 182
Joel Dean Avatar answered Oct 19 '22 05:10

Joel Dean


The bug related to renderscriptTargetApi has been fixed in gradle-plugin 2.1.0 and Build-Tools 23.0.3. Please try it out:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
    }
}


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    ...
}
like image 35
Miao Wang Avatar answered Oct 19 '22 05:10

Miao Wang