android xml 删除控件,android-cordova插件rm cordova-plugin-whitelist不会更改config.xml,因此在构建时将被读取...
當(dāng)我跑步
cordova plugin rm cordova-plugin-whitelist
然后運(yùn)行
cordova build android
我收到以下消息:
Discovered plugin “cordova-plugin-whitelist” in config.xml. Adding it to the project
Fetching plugin “cordova-plugin-whitelist@1” via npm
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.
然后進(jìn)行構(gòu)建.
因此,cordova插件rm不會(huì)像我從未安裝過(guò)的那樣刪除該插件嗎?
編輯
刪除此插件將使Webview空白.我希望它可以接受任何網(wǎng)址,但它拒絕所有內(nèi)容.
解決方法:
我不確定您的問(wèn)題在這里.為了從config.xml文件中刪除插件,您需要將–save標(biāo)志添加到cordova插件rm調(diào)用(reference):
cordova plugin rm --save
如果沒(méi)有–save標(biāo)志,則將插件從應(yīng)用程序中刪除,但不會(huì)從config.xml文件中刪除.
因此,當(dāng)您下次調(diào)用cordova build或cordova prepare時(shí),腳本將查看您的config.xml文件,并添加在那里指定但未安裝的所有插件.因此,該插件將重新添加.
標(biāo)簽:cordova,plugins,android
來(lái)源: https://codeday.me/bug/20191026/1937613.html
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的android xml 删除控件,android-cordova插件rm cordova-plugin-whitelist不会更改config.xml,因此在构建时将被读取...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: android http2.0请求,An
- 下一篇: html 正则表达式 中文,正则表达式的