1

我的 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 插件行更改为此仍然会出现“格式错误的 confic.xml”错误

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

1 回答 1

1

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 插件文档

于 2016-04-25T09:49:18.807 回答