我正在开发ionic 4应用程序,但遇到了CORS问题,因此我按照本文https://ionicframework.com/docs/native/http/安装了“高级http”插件。我正在使用devapp来测试我的应用程序。
我正在尝试将http.post发送到标头为{ 'Content-Type': 'application/x-www-form-urlencoded'}
的Azure B2C令牌URL,>
ionic cordova run android --emulator
ionic cordova run android --device
adb logcat
获取日志并找到错误)没有虚拟方法getHttpUrlChecked(Ljava / lang / String;)Lokhttp3 / HttpUrl;在Lokhttp3 / internal / Internal类中;或其父类(“ okhttp3.internal.Internal”的声明出现在base.apk中)
[一些在线帖子表明不同的cordova插件之间存在冲突,但是我从空白模板开始,仅使用“ cordova-plugin-advanced-http”,DevApp立即崩溃。
有什么建议吗?
提前感谢
我正在开发ionic 4应用程序,但遇到了CORS问题,因此我按照本文https://ionicframework.com/docs/native/http/的说明安装了“高级http”插件。我正在使用devapp测试我的...
问题通常是okHTTP库之间的冲突: