Failed to execute aapt:Process 'command '/build-tools/28.0.2/aapt'' finished with non-zero exit value 1

时间:2021-11-26 02:23:35

Caused by: com.android.ide.common.process.ProcessException: Error while executing process /Users/houzhibin/Library/Android/sdk/build-tools/28.0.2/aapt with arguments {package -f --no-crunch -I /Users/houzhibin/Library/Android/sdk/platforms/android-28/android.jar -M /Users/houzhibin/self/code/example/KdgjApp/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /Users/houzhibin/self/code/example/KdgjApp/app/build/intermediates/res/merged/debug -m -J /Users/houzhibin/self/code/example/KdgjApp/app/build/generated/source/r/debug -F /Users/houzhibin/self/code/example/KdgjApp/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.wbh.mall.kdgjapp -0 apk --output-text-symbols /Users/houzhibin/self/code/example/KdgjApp/app/build/intermediates/symbols/debug --no-version-vectors}

Failed to execute aapt:Process 'command '/build-tools/28.0.2/aapt'' finished with non-zero exit value 1

删除style.xml中报红的无效引用,解决了标题中的问题。