[ 
https://issues.apache.org/jira/browse/CB-14130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raphael reassigned CB-14130:
----------------------------

    Assignee: Raphael

> 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
>            Assignee: Raphael
>            Priority: Major
>
>  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 [email protected]
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to