[英]A built error “Renderscript support mode is not currently supported with target 21+” happened when my minSDKVersion is 21
It is the build.gradle on project 它是项目的build.gradle
dependencies { 依赖{
classpath 'com.android.tools.build:gradle:2.1.0-alpha1'
.....
}
It is the build.gradle on app 它是app上的build.gradle
android { android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
minSdkVersion 21
targetSdkVersion 23
.......
//Renderscript support mode is not currently supported with renderscript target 21+
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
When I built it , I met a error, 当我构建它时,我遇到了一个错误,
Renderscript support mode is not currently supported with renderscript target 21+
Renderscript目标21+目前不支持Renderscript支持模式
If I change minSdkVersion as 19, it can be built successfully. 如果我将minSdkVersion更改为19,则可以成功构建它。
But I need to set minSDKVersion as 21. Any one know what's going wrong ? 但我需要将minSDKVersion设置为21.任何人都知道出了什么问题?
Yep, this is a bug. 是的,这是一个错误。 The bug related to
renderscriptTargetApi
has been fixed in gradle-plugin 2.1.0 and Build-Tools 23.0.3. 有关错误
renderscriptTargetApi
已被固定在gradle这个-插件2.1.0和内置工具23.0.3。 Please try it out: 请尝试一下:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-alpha5'
}
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
...
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.