开发者控制台
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

Add a Plugin to Your Cordova Project

To add a Cordova plugin to your project, follow these steps:

  1. Open a command prompt or terminal window.
  2. Change directories to the root of your Cordova project.
  3. Run the following command to add the plugin to your Cordova project:

    $ cordova plugin add <path to plugin folder>

  4. Run the following command to build your Cordova project:

    $ cordova build

When using Amazon plugins for Cordova, you do not need to manually update the Android manifest because the plugin includes a configuration file that Cordova uses to automatically merge any needed changes when building an APK that uses the plugin.