當我在這裏使用說明生成調試APK:http://docs.phonegap.com/en/3.3.0/guide_platforms_android_tools.md.html#Android%20Command-line%20Tools運行:的PhoneGap /科爾多瓦錯誤:IceCreamCordovaWebViewClient 「URL阻止白名單」
./build --debug
和部署所產生的APK使用:
abd -install <apk path>
我可以安裝它找到,但只要應用程序進行API調用,我會得到以下錯誤:
PhoneGap/Cordova Error: IceCreamCordovaWebViewClient "URL blocked by whitelist"
但是,當我建立localhost版本,這是一個yeoman角離子堆棧(請參見:http://frontendmatters.com/getting-started-mobile-app-development-phonegap-yeoman-angularjs-ionic/),我沒有這樣的問題。我爲構建過程
>grunt build
>grunt serve
我發現了其他一些問題上故有此錯誤,他們都reccomend添加以下行到你的config.xml:
<access origin="*"/>
我已經加入這一行到我項目中的每個名爲config.xml的文件並重建,絕望之中。在這裏,他們都是(也許這會給你關於我的構建過程有點背景的,因爲我是在它有點糊塗我自己):
./app/config.xml
./old_app/config.xml
./platforms/android/assets/www/config.xml
./platforms/android/res/xml/config.xml
./www/config.xml