mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-27 20:02:15 +00:00
Fix Android build break after Virtual Environment update to 20210919 (#9163)
This commit is contained in:
parent
bde16eea68
commit
ddafe50199
3 changed files with 3 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ buildscript {
|
|||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||
classpath 'com.android.tools.build:gradle:4.0.1'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ buildscript {
|
|||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:3.5.3"
|
||||
classpath "com.android.tools.build:gradle:4.0.1"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
|
|
|
|||
|
|
@ -1170,6 +1170,7 @@ def build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, targe
|
|||
env = {}
|
||||
if args.android:
|
||||
env['ANDROID_SDK_ROOT'] = args.android_sdk_path
|
||||
env['ANDROID_NDK_HOME'] = args.android_ndk_path
|
||||
|
||||
run_subprocess(cmd_args, env=env)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue