配置中 google adMob 的 phonegap 构建错误

phonegap build error with google adMob in config

我的config.xml文件

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.onsen.helloworld" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Onsen UI Project</name>
    <description>
        Onsen UI project to create fancy user interfaces for hybrid mobile applications. It uses uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, Windows, and Windows Phone.
    </description>

    <author email="dev@onsen.io" href="http://onsen.io">
        Onsen UI Team
    </author>
    <content src="index.html" />
    <access origin="*" />
    <engine name="android" spec="~4.1.1" />
    <gap:plugin name="com.admob.google" version="2.0.2" source="plugins.cordova.io" />
</widget>

当我尝试从 build.phonegap.com 构建时,出现以下错误:

plugin source unsupported: com.admob.plugin from plugins.cordova.io

confic.xml有什么问题? 请帮助

编辑: 将 admob 插件行更改为此仍然会出现 'malformed confic.xml' 错误

<gap:plugin name="cordova-admob" source="npm"/>

Phonegap 插件已更新为新命名 (cordova-...)。您需要更改行:

<gap:plugin name="com.admob.google" version="2.0.2" source="plugins.cordova.io" />

与另一个:

<gap:plugin name="phonegap-admob" source="npm"/>

cordova/phonega admob plugin documentation here