如何将 CLI 插件添加到 Phone gap build

How to Add CLI plugin to Phone gap build

您好,我需要通过 PhoneGap Build 添加插件 cordova-plugin-play-games-services。

插件文档说可以通过 CLI 添加插件,如下所示: cordova 插件添加 cordova-plugin-play-games-services --variable APP_ID=you_app_id_here

这是我尝试但得到 error:plugin 不受支持的方法:cordova-plugin-play-games-services

<gap:plugin name="cordova-plugin-play-games-services">
    <param name="APP_ID" value="xxxxxxxxxxx" />
</gap:plugin>

我用试错法解决了

我替换

<gap:plugin name="cordova-plugin-play-games-services">
<param name="APP_ID" value="xxxxxxxxxxx" />
</gap:plugin>

与:

<plugin name="cordova-plugin-play-games-services">
    <param name="APP_ID" value="762844631792" />
</plugin>