问题
I got the above error when I changed minsdk to 21 and targetsdk to 23 both from API 26. It also shows some warnings like minsdkVersion (28) is greater than targetsdkversion (23) for variant release. What is the issue?
回答1:
There are two build.gradle files that you need to make sure their version is the same as your AndroidManifest.xml, one is in root directory of the project, which should be having lines containing defaultMinSdkVersion and defaultTargetSdkVersion. The other is inside your app directory and it shouldn't have any of such lines. After changing those make sure you do a clean build again.
来源:https://stackoverflow.com/questions/53911540/how-to-get-rid-of-this-error-failed-processing-manifest