You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Raphael (JIRA)" <ji...@apache.org> on 2018/06/12 23:42:00 UTC

[jira] [Created] (CB-14130) Need to run prepare twice to restore plugins

Raphael created CB-14130:
----------------------------

             Summary: Need to run prepare twice to restore plugins
                 Key: CB-14130
                 URL: https://issues.apache.org/jira/browse/CB-14130
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-lib
    Affects Versions: 8.0.0
         Environment: Ubuntu 18.04
Cordova 8.0.0
            Reporter: Raphael


 

Run this code in your shell
{code:java}
cordova create example && cd example
cordova platform add android
rm -r plugins/ platforms/
cordova prepare{code}
*Expected*

 

Plugins and Platforms restored

*Actual*

platform is restored, plugin-whitelist not:
{code:java}
Discovered platform "android@^7.0.0" in config.xml or package.json. Adding it to the project
Using cordova-fetch for cordova-android@^7.0.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.cordova.hellocordova
Name: HelloCordova
Activity: MainActivity
Android target: android-27
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.1.0
Android Studio project detected
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Cannot find plugin.xml for plugin "cordova-android". Please try adding it again.{code}
Another cordova prepare restores the plugin:
{code:java}
Android Studio project detected
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android

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.
{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org