打开项目报错

C:\Users\Administrator\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0-alpha1.aar\9b7bff2d11b1ef87db70add8235ec4e2\res\values-v28\values-v28.xml
Error:(5, 5) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').
D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\res\merged\androidTest\debug\values-v28\values-v28.xml
Error:(7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius').
Error:java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process D:\studiosdkdown\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\studiosdkdown\platforms\android-26\android.jar -M \\?\D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\manifest\androidTest\debug\AndroidManifest.xml -S D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\res\merged\androidTest\debug -m -J \\?\D:\androidspace\androidT\AS_Libs\app_card\build\generated\source\r\androidTest\debug -F D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\res\androidTest\debug\resources-debugAndroidTest.ap_ -0 apk --output-text-symbols \\?\D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\symbols\androidTest\debug --no-version-vectors}
Error:com.android.ide.common.process.ProcessException: Error while executing process D:\studiosdkdown\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\studiosdkdown\platforms\android-26\android.jar -M \\?\D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\manifest\androidTest\debug\AndroidManifest.xml -S D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\res\merged\androidTest\debug -m -J \\?\D:\androidspace\androidT\AS_Libs\app_card\build\generated\source\r\androidTest\debug -F D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\res\androidTest\debug\resources-debugAndroidTest.ap_ -0 apk --output-text-symbols \\?\D:\androidspace\androidT\AS_Libs\app_card\build\intermediates\symbols\androidTest\debug --no-version-vectors}
Error:org.gradle.process.internal.ExecException: Process 'command 'D:\studiosdkdown\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1
Error:Execution failed for task ':app_card:processDebugAndroidTestResources'.

> Failed to execute aapt



另外手机安装debug 版本和release版本同时安装需要签名相同

求解决方案

猜你喜欢

转载自blog.csdn.net/uglyant/article/details/79964335