Required: PROJECT. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS-解决方法

本文详细解析了在使用Gradle构建项目时遇到的错误:'transformNativeLibsWithMergeJniLibsForDebug'任务执行失败,并提供了有效的解决方案——通过Clean Project来清除缓存和临时文件,从而解决构建过程中出现的意外scope问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

* What went wrong:
Execution failed for task ':photomodule:transformNativeLibsWithMergeJniLibsForDebug'.
> Unexpected scopes found in folder 'D:\**\**\**'. Required: PROJECT. Found: EXTERNAL_LIBRARIES, PROJECT, SUB_PROJECTS
 

明明之前是可以的,为什么现在却有一大篇莫名其妙的error?!

这个时候都可以尝试点击Build-Clean Project。

可能会clean一些时间,clean完成后再运行就没有任何问题了。

/root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/ninja/linux/x64/ninja -DVP_SDK_PLATFORM=VP_SDK_PLATFORM_LINUX -G Ninja -S /home/dong/vp_cloud -B /home/dong/vp_cloud -- Current build platform is [Linux] use host -- vp_context_1.0.0.12 Module Config: -- VP_SDK_OS_TYPE:VP_SDK_OS_VEEPAI -- VP_SDK_PLATFORM:VP_SDK_PLATFORM_LINUX -- VP_POWER_TYPE:VP_POWER_TYPE_LOW -- VP_NETWORK_MODE:VP_NETWORK_MODE_MOBILE -- VP_SOC_BRAND:VP_SOC_BRAND_JZ -- VP_SOC_MODEL:VP_SOC_MODEL_JZ_T41ZM -- VP_NIC_BRAND:VP_NIC_BRAND_HZ -- VP_NIC_MODEL:VP_NIC_MODEL_HZ_780E -- VP_DEVICE_TYPE:VP_DEVICE_TYPE_BW6 -- VP_MOBILE_DEVICE_TYPE:VP_MOBILE_DEVICE_TYPE_QG5 -- Current build Veepai OS -- Current build nic mode wifi:OFF mobile:ON wire:OFF -- vp_printf_1.0.0.4 Module Config: -- VP_PRINTF_ENABLE:0x01 -- VP_PRINTF_LEVEL:VP_PRINTF_LEVEL_ALL -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavformat' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavformat' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:16 (add_pkg_library) -- vp_platform not found libavformat -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavcodec' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavcodec' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:17 (add_pkg_library) -- vp_platform not found libavcodec -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libswresample' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libswresample' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:18 (add_pkg_library) -- vp_platform not found libswresample -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavfilter' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavfilter' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:19 (add_pkg_library) -- vp_platform not found libavfilter -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libpostproc' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libpostproc' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:20 (add_pkg_library) -- vp_platform not found libpostproc -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libswscale' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libswscale' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:21 (add_pkg_library) -- vp_platform not found libswscale -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- Checking for one of the modules 'libavutil' CMake Error at /root/.cache/JetBrains/RemoteDev/dist/4301d48e0f61a_CLion-252.23309.24/bin/cmake/linux/x64/share/cmake-4.0/Modules/FindPkgConfig.cmake:934 (message): None of the required 'libavutil' found Call Stack (most recent call first): .dependencies/vp_cmake_1.0.0.8/vp_cmake/src/CMakeLists.txt:256 (pkg_search_module) .dependencies/vp_platform_1.0.0.19/vp_platform/CMakeLists.txt:22 (add_pkg_library) -- vp_platform not found libavutil platform_dir:LINUX -- vp_crypto_1.1.0.0 Module Config: -- VP_SSL_MBEDTLS:0x01 -- VP_SSL_WOLFSSL:0x00 -- VP_SSL_LIBRARY:0x01 -- Configuring incomplete, errors occurred! [无法重新加载]
最新发布
06-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值