eta*_*tan 3 android renderscript android-gradle-plugin
更新到构建工具25.0.2后,我收到以下错误(23.0.2工作正常):
Error:target API level '25' is out of range ('11' - '24')
Error:Execution failed for task ':app:compileDevDebugRenderscript'.
> com.android.ide.common.process.ProcessException: Error while executing process /usr/local/opt/android-sdk/build-tools/25.0.2/llvm-rs-cc with arguments {-O 3 -I /usr/local/opt/android-sdk/build-tools/25.0.2/renderscript/include/ -I /usr/local/opt/android-sdk/build-tools/25.0.2/renderscript/clang-include/ -p /<redacted>/app/build/generated/source/rs/dev/debug -o /<redacted>/app/build/generated/res/rs/dev/debug/raw -target-api 25 /<redacted>/app/src/main/rs/<redacted>.rs}
Run Code Online (Sandbox Code Playgroud)
我在app/build.gradle中有以下内容:
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
minSdkVersion 21
targetSdkVersion 25
renderscriptTargetApi 21
renderscriptSupportModeEnabled false
...
}
...
}
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,renderscriptTargetApi设置为21,但新的构建工具强制它为25.由于依赖于需要关闭它的库,我无法打开支持模式.
我是否应该恢复构建工具23.0.2并等待修复或是否有任何变通方法可以让renderscript使用最新的构建工具?
似乎是构建工具r25中的错误.我已向Android跟踪器提交了一张票:https://code.google.com/p/android/issues/detail? id = 260929 & thanks = 260929 & ts = 1490175869
| 归档时间: |
|
| 查看次数: |
2145 次 |
| 最近记录: |