6 Replies Latest reply on Jan 21, 2017 10:49 PM by anithr52132593

    Error - Plugin (or a specific plugin version) not found in external repo

    anithr52132593

      Hello Team,

       

      I have built an Hybrid mobile app, few months back i was able to build all of us sudden stopped working. i getting this error, let me know how do i solve this..

       

      Thanks in advance.

       

      Best regards

      Anith

        • 1. Re: Error - Plugin (or a specific plugin version) not found in external repo
          VectorP Level 4

          Are you trying to use plugins from the (since Nov. 2016) switched off PGB repo?

          If so, get the plugins from NPM, instead. See the Plugins section of the PGB Docs and the Phonegap Build Blog.

          • 2. Re: Error - Plugin (or a specific plugin version) not found in external repo
            anithr52132593 Level 1

            Hi VectorP,

             

            Yes, m using plugins from after Nov 2016.

             

            Please have look into my config.xml file.

            Please do let me know anything m missing

             

            Here my config.xml file

             

            <?xmlns version="1.0" encoding="UTF-8" ?>

              <widget xmlns = "http://www.w3.org/ns/widgets"

              xmlns:cdv="http://cordova.apache.org/ns/1.0"

              xmlns:android = "http://schemas.android.com/apk/res/android"

              id        = "com.cadem.ecasco"

              versionCode= "1"

              version   = "1.0.1">

             

              <name>ecasco</name>

              <description>ecasco development team Anith</description>

              <author href="https://cadem.com" email="anithraj143@gmail.com">Anith</author>

              <content src="index.html"/>

             

              <plugin name="cordova-plugin-battery-status"  source="npm" spec="~1.2.1" />

              <plugin name="cordova-plugin-device"  source="npm" spec="~1.1.4" />

              <plugin name="cordova-plugin-device-orientation"  source="npm" spec="~1.0.5" />

              <plugin name="cordova-plugin-device-motion"  source="npm" spec="~1.2.3" />

              <plugin name="cordova-plugin-dialogs"  source="npm" spec="~1.3.1" />

              <plugin name="cordova-plugin-file"  source="npm" spec="~4.3.1" />

              <plugin name="cordova-plugin-file-transfer"  source="npm" spec="~1.6.1" />

              <plugin name="cordova-plugin-globalization"  source="npm" spec="~1.0.5" />

              <plugin name="cordova-plugin-inappbrowser"  source="npm" spec="~1.5.0" />

              <plugin name="cordova-plugin-media"  source="npm" spec="~2.4.1" />

              <plugin name="cordova-plugin-network-information"  source="npm" spec="~1.4.1" />

              <plugin name="cordova-plugin-splashscreen" source="npm" spec="~4.0.1"/>

              <plugin name="cordova-plugin-statusbar"  source="npm" spec="~2.2.1" />

              <plugin name="cordova-plugin-whitelist"  source="npm" spec="~1.3.1" />

             

             

              <preference name="phonegap-version" value="cli-6.3.0" />

             

              <preference name="android-minSdkVersion" value="14" />

              <preference name="android-installLocation" value="auto" />

              <preference name="SplashScreenDelay" value="2000" />

              <preference name="android-build-tool" value="gradle" />

              <preference name="orientation" value="default" />

              <preference name="fullscreen" value="false" />

              <preference name="AndroidPersistentFileLocation" value="Compatibility" />

             

              <platform name="android">

              <icon src="icon.png" />

              <icon src="res/icon/android/drawable-ldpi-icon.png" qualifier="ldpi" />

              <icon src="res/icon/android/drawable-mdpi-icon.png" qualifier="mdpi" />

              <icon src="res/icon/android/drawable-hdpi-icon.png" qualifier="hdpi" />

              <icon src="res/icon/android/drawable-xhdpi-icon.png" qualifier="xhdpi" />

              <icon src="res/icon/android/drawable-xxhdpi-icon.png" qualifier="xxhdpi" />

              <icon src="res/icon/android/drawable-xxxhdpi-icon.png" qualifier="xxxhdpi" />

             

              <splash src="res/screen/android/drawable-land-ldpi-screen.png" qualifier="port-ldpi" />

              <splash src="res/screen/android/drawable-land-mdpi-screen.png" qualifier="port-mdpi" />

              <splash src="res/screen/android/drawable-port-hdpi-screen.png" qualifier="port-hdpi" />

              <splash src="res/screen/android/drawable-port-xhdpi-screen.png" qualifier="port-xhdpi" />

              <splash src="res/screen/android/drawable-port-xxhdpi-screen.png" qualifier="port-xxhdpi" />

              <splash src="res/screen/android/drawable-land-xxhdpi-screen.png" qualifier="land-xxhdpi" />

              <splash src="res/screen/android/drawable-port-xxxhdpi-screen.png" qualifier="port-xxxhdpi" />

              <splash src="res/screen/android/drawable-land-xxxhdpi-screen.png" qualifier="land-xxxhdpi" />

              </platform>

              <access origin="*" />

             

             

              <allow-navigation href="http://*/*" />

              <allow-navigation href="https://*/*" />

              <allow-navigation href="data:*" />

             

             

              <!-- Added the following intents to support the removal of whitelist code from base cordova to a plugin -->

              <!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html -->

              <allow-intent href="*" />

              <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">

              <allow-intent href="market:*" />

              </platform>

              <!--<platform name="ios">

              <allow-intent href="itms:*" />

              <allow-intent href="itms-apps:*" />

              </platform>-->

            </widget>

            • 3. Re: Error - Plugin (or a specific plugin version) not found in external repo
              VectorP Level 4

              You specify

              <plugin name="cordova-plugin-network-information"  source="npm" spec="~1.4.1" />

              which doesn't exist.

               

              btw: you may want to update your config to use the latest versions of all plugins. Some plugins were updated/changed recently.

              • 4. Re: Error - Plugin (or a specific plugin version) not found in external repo
                anithr52132593 Level 1

                Hello,

                 

                Sorry for the late response.

                 

                Please can you provide me the necessary information about how and where  to migrate latest version and where do i get the updated plugins.

                 

                Thanks in advance

                 

                Regards

                Anith

                • 5. Re: Error - Plugin (or a specific plugin version) not found in external repo
                  VectorP Level 4

                  You can find information about the current release at the plugin's npm page (in the right screen column) and about previous releases at the plugin's Github page.

                   

                  When using PGB, it's easy to obtain the latest version: simply do not specify a version or spec attribute in the plugin element. As opposed to others at this forum, I recommend to never specify a plugin version, unless you have to downgrade a specific plugin for an important reason.

                  Too often we see developers getting in trouble due to older plugin versions....they once specified a certain plugin version and never bothered to update since that first time.

                   

                  When building locally, you need to install the latest plugin version by not specifying the version number at the command line.

                  • 6. Re: Error - Plugin (or a specific plugin version) not found in external repo
                    anithr52132593 Level 1

                    Thanks VectorP.

                     

                    Its working for me.

                     

                    Best regards

                    Anith