Problem in android deploy project

during my gradle build, an error occurred

Configure project :app WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018 WARNING: Configuration ‘androidTestCompile’ is obsolete and has been replaced with ‘androidTestImplementation’. It will be removed at the end of 2018 WARNING: Configuration ‘androidTestApi’ is obsolete and has been replaced with ‘androidTestImplementation’. It will be removed at the end of 2018 WARNING: Configuration ‘testCompile’ is obsolete and has been replaced with ‘testImplementation’. It will be removed at the end of 2018 WARNING: Configuration ‘testApi’ is obsolete and has been replaced with ‘testImplementation’. It will be removed at the end of 2018 WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.0. Android SDK Build Tools 27.0.3 will be used. To suppress this warning, remove “buildToolsVersion ‘26.0.1’” from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :app:buildJni make: Entering directory /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni' [arm64-v8a] Compile++ : tvm4j_runtime_packed <= ml_dmlc_tvm_native_c_api.cc In file included from /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/ml_dmlc_tvm_native_c_api.cc:25: In file included from /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/tvm_runtime.h:33: In file included from /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/../../../../../../include/../src/runtime/module.cc:31: In file included from /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/../../../../../../include/../src/runtime/file_util.h:30: In file included from /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/../../../../../../include/../src/runtime/meta_data.h:28: /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni/../../../../../../3rdparty/dmlc-core/include/dmlc/json.h:28:10: fatal error: 'typeindex' file not found #include <typeindex> ^ 1 error generated. make: Leaving directory /home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/jni’ make: *** [/home/xxxx/ntvm/tvm/apps/android_deploy/app/src/main/obj/local/arm64-v8a/objs/tvm4j_runtime_packed/ml_dmlc_tvm_native_c_api.o] Error 1

Task :app:buildJni FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:buildJni’.

Process ‘command ‘sh’’ finished with non-zero exit value 2

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

how can I solve this?

It seems typeindex.h no longer included in tvm directory?