Android Studio运行报错

img

java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing process D:\LenovoSoftstore\SDK\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\LenovoSoftstore\SDK\platforms\android-26\android.jar -M \?\C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\res\merged\debug -m -J \?\C:\Users\�����\Desktop\weatherSecond\app\build\generated\source\r\debug -F C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\res\debug\resources-debug.ap_ --custom-package com.bignerdranch.android.weathersecond -0 apk --preferred-density 420dpi --output-text-symbols \?\C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\symbols\debug --no-version-vectors}

com.android.ide.common.process.ProcessException: Error while executing process D:\LenovoSoftstore\SDK\build-tools\26.0.2\aapt.exe with arguments {package -f --no-crunch -I D:\LenovoSoftstore\SDK\platforms\android-26\android.jar -M \?\C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\res\merged\debug -m -J \?\C:\Users\�����\Desktop\weatherSecond\app\build\generated\source\r\debug -F C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\res\debug\resources-debug.ap_ --custom-package com.bignerdranch.android.weathersecond -0 apk --preferred-density 420dpi --output-text-symbols \?\C:\Users\�����\Desktop\weatherSecond\app\build\intermediates\symbols\debug --no-version-vectors}

org.gradle.process.internal.ExecException: Process 'command 'D:\LenovoSoftstore\SDK\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1

上面为报错信息,请问怎么解决?

可能是sdk文件的路径出问题了,文件夹里面看看sdk路径有没有问题

https://blog.csdn.net/qq_24118527/article/details/83586161
这篇文章对你应该有帮助