我看过很多关于这个错误代码的帖子,但我的内容似乎与我最近读过的其他内容不一样。
以下是我在尝试构建项目时遇到的错误。
FAILURE: Build failed with an exception.
Execution failed for task ':processDebugManifest'.> Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [android:CordovaLib:unspecified:debug] C:\Users\CGZ\Desktop\TestAdd\platforms\android\build\intermediates\exploded-aar\android\CordovaLib\unspecified\debug\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.apache.cordova" to force usage
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
建立失败
总时间:12.759秒
Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\CGZ\Desktop\TestAdd\platforms\android\gradlew cdvBuildDebug -b C:\Users\CGZ\Desktop\TestAdd\platforms\android\build.gradle -Dorg.gradle.daemon=true-Pandroid.useDeprecatedNdk=true"
如果我从config.xml文件中删除插件,那么它编译构建正常。
<preference name="android-build-tool" value="gradle" />
<gap:plugin name="cordova-plugin-admobpro" source="npm" />
答案 0 :(得分:0)
这可能是插件依赖项的问题。尝试使用另一个https://github.com/appfeel/admob-google-cordova:
<html>
<head>
<title>Downcall Detail</title>
<script type="text/javascript" src="{% static "js/downcall_validation.js" %}"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
</head>
<body>
{% block content %}
{{ DowncallForm.media }}
<form method="post" action="" id="downcall_register_form" enctype="multipart/form-data">
{% csrf_token %}
<div id="div_id_tat" class="form-group">
<label for="id_tat" class="control-label requiredField">
Tat<span class="asteriskField">*</span>
</label>
<div class="controls ">
<input class="numberinput form-control" id="id_tat" name="tat" type="number" />
</div>
</div>