Java 不应在 android 清单文件中声明 minSdk 版本
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/51795814/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
The minSdk version should not be declared in the android manifest file
提问by Chris
Gradle Sync Errors are coming up on my build.gradle file for a module I imported called BaseGameUtils saying The minSdk version should not be declared in the android manifest file.
I don't call this at all from what I can see, and I don't in the Android Manifest either?
Gradle Sync Errors 出现在我导入的名为 BaseGameUtils 的模块的 build.gradle 文件中,说The minSdk version should not be declared in the android manifest file.
我根本没有从我所看到的情况下调用它,我也没有在 Android Manifest 中调用它?
But hereis my build.gradle file. Please help!
但这里是我的build.gradle文件。请帮忙!
采纳答案by Anubhav Gupta
Inside your manifest there must be inside which minsdkversion might have been written. Just remove <uses-sdk>....</uses-sdk>
在您的清单中,必须有可能已写入 minsdkversion 的内容。只需删除<uses-sdk>....</uses-sdk>
回答by tnfaid
currently, I'm using openCV, my solution is to change minsdk in build.gradle for module:app and build.gradle module:OpenCVLibrary with the same version. i hope it's work for you
目前,我正在使用 openCV,我的解决方案是将 build.gradle 中的 minsdk 更改为 module:app 和 build.gradle module:OpenCVLibrary 具有相同版本。我希望它对你有用