(4.5.3.4)finished with non-zero exit value 2

本文介绍了一种常见的Android项目构建错误,即因重复的jar包(如support-v4.jar)导致的编译失败问题,并提供了解决方案,通过排除特定的jar包避免冲突。

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

Error:Execution failed for task ':phoneacompany:dexDebug'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\softing\Java\jdk1.7.0_67\bin\java.exe'' finished with non-zero exit value 2

===

出现这个是编译的时候出现重复的jar包导致的。

==

因为在主工程里面有support-v4.jar,而子工程里面也有,因此我在编译的时候,把主工程不进行编译。 

dependencies {      compile fileTree(dir: 'libs', include: '*.jar', exclude: 'android-support-v4.jar')    }

Collecting pin==2.7.0 (from -r requirements.txt (line 55)) Using cached pin-2.7.0.tar.gz (61.8 MB) Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully.exit code: 1 ╰─> [170 lines of output] Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 Collecting cmeel-boost~=1.83.0 Using cached cmeel_boost-1.83.0.tar.gz (4.0 kB) Installing build dependencies: started Installing build dependencies: finished with status &#39;done&#39; Getting requirements to build wheel: started Getting requirements to build wheel: finished with status &#39;done&#39; Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status &#39;error&#39; error: subprocess-exited-with-error Preparing metadata (pyproject.toml) did not run successfully. exit code: 1 [144 lines of output] -- Building for: Visual Studio 17 2022 -- The C compiler identification is MSVC 19.44.35211.0 -- The CXX compiler identification is MSVC 19.44.35211.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Python3: C:\Users\__CellMan\.conda\envs\foundationpose\python.exe (found version "3.9.23") found components: Interpreter Development.Module -- CONFIGURE_COMMAND: ./bootstrap.sh;--prefix=C:/Users/__CELL~1/AppData/Local/Temp/cmeel-1somp3uw/whl/cmeel.prefix -- BUILD_COMMAND: ./b2;hardcode-dll-paths=true;dll-path=&#39;$ORIGIN&#39;;link=shared;python=3.9 -- Configuring done (16.4s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: BUILD_TESTING Boost_NO_WARN_NEW_VERSIONS CMAKE_APPLE_SILICON_PROCESSOR CMAKE_INSTALL_LIBDIR CMEEL_JOBS PYTHON_SITELIB -- Build files have been written to: C:/Users/__CELL~1/AppData/Local/Temp/cmeel-1somp3uw/bld 閫傜敤浜\x8e .NET Framework MSBuild 鐗堟湰 17.14.14+a129329f1 C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(548,5): w arning MSB8029: 涓\xad闂寸洰褰曟垨杈撳嚭鐩\xae褰曟棤娉曢┗鐣欏湪涓存椂鐩\xae褰曚笅锛屽洜涓鸿繖鍙\xaf鑳戒細瀵艰嚧澧為噺鐢熸垚鍑 虹幇闂\xae棰樸\x80\x82 [C:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\ZERO_CHECK.vcxproj] 1>Checking Build System C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(548,5): w arning MSB8029: 涓\xad闂寸洰褰曟垨杈撳嚭鐩\xae褰曟棤娉曢┗鐣欏湪涓存椂鐩\xae褰曚笅锛屽洜涓鸿繖鍙\xaf鑳戒細瀵艰嚧澧為噺鐢熸垚鍑 虹幇闂\xae棰樸\x80\x82 [C:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\Boost.vcxproj] Creating directories for &#39;Boost&#39; Building Custom Rule C:/Users/__CellMan/AppData/Local/Temp/pip-install-5pxl6tt_/cmeel-boost_4fb6f8d6aeca48aab18582433951fa01/CMakeLists.txt Performing download step (download, verify and extract) for &#39;Boost&#39; -- Downloading... dst=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; timeout=&#39;none&#39; inactivity timeout=&#39;none&#39; -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 22% complete] -- [download 58% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 58% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 9% complete] -- [download 22% complete] -- [download 58% complete] -- [download 70% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 22% complete] -- [download 58% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 22% complete] -- [download 34% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... -- Using src=&#39;https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2&#39; -- [download 100% complete] -- [download 22% complete] -- [download 34% complete] -- [download 58% complete] -- [download 100% complete] -- verifying file... file=&#39;C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2&#39; -- SHA256 hash of C:/Users/__CellMan/AppData/Local/Temp/cmeel-1somp3uw/bld/Boost-prefix/src/boost_1_83_0.tar.bz2 does not match expected value expected: &#39;6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e&#39; actual: &#39;e0f020de72913559199b5698b1f50a733dcfd7e1b0532de4a2357c3baca95e0f&#39; -- Hash mismatch, removing... CMake Error at Boost-stamp/download-Boost.cmake:163 (message): Each download failed! C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: 鈥淐:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-mk dir.rule;C:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-download.ru le;C:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-update.rule;C:\Us ers\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-patch.rule;C:\Users\__CEL L~1\AppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-configure.rule;C:\Users\__CELL~1\A ppData\Local\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-build.rule;C:\Users\__CELL~1\AppData\Lo cal\Temp\cmeel-1somp3uw\bld\CMakeFiles\755458b903e4cca2d215a37840379c36\Boost-install.rule;C:\Users\__CELL~1\AppData\Local\Tem p\cmeel-1somp3uw\bld\CMakeFiles\afcbe1798a3d8227aea59f65cb94f1da\Boost-complete.rule;C:\Users\__CELL~1\AppData\Local\Temp\cmee l-1somp3uw\bld\CMakeFiles\e26596573a2d2b2916d37c037e150495\Boost.rule;C:\Users\__CellMan\AppData\Local\Temp\pip-install-5pxl6t t_\cmeel-boost_4fb6f8d6aeca48aab18582433951fa01\CMakeLists.txt鈥濈殑鑷\xaa瀹氫箟鐢熸垚宸查\x80\x80鍑猴紝浠g爜涓\xba 1銆\x82 [C:\Users\__CELL~1\AppData\Local\Temp\cmeel-1somp3uw\bld\Boost.vcxproj] Traceback (most recent call last): File "C:\Users\__CellMan\.conda\envs\foundationpose\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "C:\Users\__CellMan\.conda\envs\foundationpose\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) File "C:\Users\__CellMan\.conda\envs\foundationpose\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 178, in prepare_metadata_for_build_wheel whl_basename = backend.build_wheel(metadata_directory, config_settings) File "C:\Users\__CellMan\AppData\Local\Temp\pip-build-env-qq50mhk3\overlay\Lib\site-packages\cmeel\build.py", line 26, in build_wheel return build_impl(wheel_directory, editable=False) File "C:\Users\__CellMan\AppData\Local\Temp\pip-build-env-qq50mhk3\overlay\Lib\site-packages\cmeel\impl.py", line 105, in build_impl check_call(build_cmd) File "C:\Users\__CellMan\.conda\envs\foundationpose\lib\subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command &#39;[&#39;cmake&#39;, &#39;--build&#39;, &#39;C:\\Users\\__CELL~1\\AppData\\Local\\Temp\\cmeel-1somp3uw\\bld&#39;, &#39;-j4&#39;]&#39; returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Encountered error while generating package metadata. See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully.exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
最新发布
07-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值