Android SDK 26允许为所有Web视图加载混合内容

时间:2018-10-16 11:45:50

标签: android android-webview build.gradle

我正在使用targetSdkVersion 26构建一个Android项目,并从创建WebView的JAR文件调用活动。获得以下消息:

"Mixed Content: The page at 'https://xxxx' was loaded over a secure connection, but contains a form that targets an insecure endpoint 'mobile://xxxx.android'. This endpoint should be made available over a secure connection.", source: https://xxxx

Android WebView not loading Mixed Content看来,解决方案是将WebView设置为WebSettings.MIXED_CONTENT_ALWAYS_ALLOW

由于我正在从第三方JAR文件中调用类,因此我无法访问WebView对象,在这种情况下,可能的解决方法是什么?

0 个答案:

没有答案