1. 程式人生 > >Failed to execute aapt:Process 'command '/build-tools/28.0.2/aapt'' finished with non-zero exit value 1

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

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}

 

刪除style.xml中報紅的無效引用,解決了標題中的問題。