mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix: renderscript compilation should work for old platforms
This commit is contained in:
+5
-1
@@ -57,7 +57,11 @@ public class AndroidRenderscript {
|
||||
command.add(FileUtil.toSystemDependentName(rawDirPath));
|
||||
|
||||
command.add("-target-api");
|
||||
command.add(Integer.toString(target.getVersion().getApiLevel()));
|
||||
int targetApi = target.getVersion().getApiLevel();
|
||||
if (targetApi < 11) {
|
||||
targetApi = 11;
|
||||
}
|
||||
command.add(Integer.toString(targetApi));
|
||||
|
||||
if (depFolderPath != null) {
|
||||
command.add("-d");
|
||||
|
||||
Reference in New Issue
Block a user