phonegap-plugins

launchnavigator plugin building with error in phonegap buid


Today the phonegap build issue an error with launchnavigator plugin,the following error is displayed on the build log: Failed to install 'uk.co.workingedge.phonegap.plugin.launchnavigator': Error: Variable(s) missing: GOOGLE_API_KEY_FOR_ANDROID, any thought?


Solution

  • According to the plugin's CHANGELOG, there's a new major version 5.0.0 which contains this change:

    Add plugin variable to enable specification of Google API key for geocoding on Android. Fixes #211.

    So you will need to add the plugin variable as outlined in the updated plugin documentation:

    <plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" source="npm" >
        <variable name="GOOGLE_API_KEY_FOR_ANDROID" value="{your_api_key}" />
    </plugin>