phonegap / phonegap-docs

PhoneGap Documentation
http://docs.phonegap.com
Apache License 2.0
121 stars 240 forks source link

This plugin is only applicable for versions of cordova-android greater than 4.0 #293

Closed Maxondria closed 6 years ago

Maxondria commented 6 years ago

I am compiling and building my app using the Phonegap Build but I keep getting an error This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in. Here is my config.xml

<content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <preference name="android-minSdkVersion" value="19" />
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <preference name="BackupWebStorage" value="none" />
    </platform>
    <preference name="DisallowOverscroll" value="true" />

    <engine name="browser" source="npm" />
    <plugin name="cordova-plugin-geolocation" source="npm" />
    <plugin name="cordova-plugin-camera" source="npm" />
    <plugin name="cordova-plugin-splashscreen" source="npm" />
    <plugin name="cordova-plugin-whitelist" source="npm" />
    <plugin name="cordova-plugin-dialogs" source="npm" />
    <plugin name="cordova-plugin-vibration" source="npm" />
    <plugin name="cordova-plugin-network-information" source="npm" />
    <plugin name="cordova-plugin-contacts" source="npm" />

   <preference name="phonegap-version" value="cli-7.1.0" />
   <preference name="android-build-tool" value="gradle" />

    <engine name="android" spec="latest" />
    <engine name="ios" spec="latest" />
    <engine name="windows" spec="latest" />

  <platform name="android">
        <config-file parent="/*" target="AndroidManifest.xml">
            <uses-permission android:name="android.permission.CAMERA" />
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
            <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
            <uses-permission android:name="android.permission.READ_CONTACTS" />
        </config-file>
    </platform>

    <plugin name="cordova-plugin-statusbar" source="npm" />
    <preference name="StatusBarOverlaysWebView" value="false" />
    <preference name="StatusBarBackgroundColor" value="#165769" />
    <preference name="StatusBarStyle" value="lightcontent" />
  <plugin name="cordova.plugins.diagnostic" source="npm" />
<preference name="cordova.plugins.diagnostic.modules" value="LOCATION CAMERA CONTACTS" />

the cordova-plugin-whitelist keeps causing that error but I need it...

Kindly help...please...

Maxondria commented 6 years ago

figured the issue out...

fayme commented 5 years ago

how did you solve it? @Maxondria