今天在对接 vmos demo包的时候报:Task :sample:configureCMakeDebug[arm64-v8a] FAILED

> Task :sample:configureCMakeDebug[arm64-v8a] FAILED

Execution failed for task ':sample:configureCMakeDebug[arm64-v8a]'.

> [CXX1405] error when building with cmake using C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\src\main\cpp\CMakeLists.txt: Build command failed.

Error while executing process D:\androidsdk\cmake\3.22.1\bin\cmake.exe with arguments {-HC:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\src\main\cpp -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=21 -DANDROID_PLATFORM=android-21 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=D:\androidsdk\ndk\21.4.7075529 -DCMAKE_ANDROID_NDK=D:\androidsdk\ndk\21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=D:\androidsdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\androidsdk\cmake\3.22.1\bin\ninja.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\build\intermediates\cxx\Debug\5hi3x321\obj\arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\build\intermediates\cxx\Debug\5hi3x321\obj\arm64-v8a -DCMAKE_BUILD_TYPE=Debug -BC:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\.cxx\Debug\5hi3x321\arm64-v8a -GNinja}

* Try:

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

* Exception is:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':sample:configureCMakeDebug[arm64-v8a]'.

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:145)

at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:143)

at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:131)

at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecute

[CXX1405] error when building with cmake using C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\src\main\cpp\CMakeLists.txt: Build command failed.

Error while executing process D:\androidsdk\cmake\3.22.1\bin\cmake.exe with arguments {-HC:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\src\main\cpp -DCMAKE_SYSTEM_NAME=Android -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_SYSTEM_VERSION=21 -DANDROID_PLATFORM=android-21 -DANDROID_ABI=arm64-v8a -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a -DANDROID_NDK=D:\androidsdk\ndk\21.4.7075529 -DCMAKE_ANDROID_NDK=D:\androidsdk\ndk\21.4.7075529 -DCMAKE_TOOLCHAIN_FILE=D:\androidsdk\ndk\21.4.7075529\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=D:\androidsdk\cmake\3.22.1\bin\ninja.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\build\intermediates\cxx\Debug\5hi3x321\obj\arm64-v8a -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=C:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\build\intermediates\cxx\Debug\5hi3x321\obj\arm64-v8a -DCMAKE_BUILD_TYPE=Debug -BC:\Users\ZMONV\Desktop\vmos-lite-sample-main\sample\.cxx\Debug\5hi3x321\arm64-v8a -GNinja}

不知道什么原因检查发现 系统缺少VC++环境 正常来说应该是系统自带的环境,不知道什么原因我的电脑缺少这个环境,下了一个安装环境的压缩包 ,解压安装环境问题,重新运行项目,项目可以跑了

相关推荐
LuiChun2 小时前
webview_flutter_android 4.3.0使用
android·flutter
Tanecious.2 小时前
C语言--分支循环实践:猜数字游戏
android·c语言·游戏
闲暇部落4 小时前
kotlin内联函数——takeIf和takeUnless
android·kotlin
Android西红柿13 小时前
flutter-android混合编译,原生接入
android·flutter
大叔编程奋斗记14 小时前
【Salesforce】审批流程,代理登录 tips
android
程序员江同学16 小时前
Kotlin 技术月报 | 2025 年 1 月
android·kotlin
爱踢球的程序员-116 小时前
Android:View的滑动
android·kotlin·android studio
大耳猫17 小时前
Android HandlerThread
android·thread·handler
新玉540117 小时前
PHP反序列化练习
android·开发语言·前端·php