使用 cmd 执行 phonegap build --android,但出现此错误:processDebugManifest FAILED

Using cmd to perform phonegap build --android, but i have this error coming out :processDebugManifest FAILED

我正在使用 cmd 构建 phonegap。导航到我的 phonegap 项目所在的文件夹后,我输入 phonegap build -- android 因为我想生成一个 apk 文件。 (我是新来的,所以还在测试如何构建这个 apk 文件) 过了一会儿,我收到了这条消息:

:processDebugManifest FAILED FAILURE: Build failed with an exception.

出了什么问题:

Execution failed for task ':processDebugManifest'.
Manifest merger failed : uses-sdk: minSdkVersion 7 cannot be smaller than version 10 declared in library C:\USers\xxxx\IdeaProjects\project_name\platforms\android \build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml
Suggestion : use tools: overrideLibrary = 'org.apache.cordova" to force usage

我对这个消息不是很理解,也没有解决的办法。

检查你的config.xml

<preference name="android-minSdkVersion" value="10" />

您可以使用任何您喜欢的值。希望这能解决。