android - Xamarin webview 在 Release模式下不工作——Visual Studio 2013 和 2015

标签 android visual-studio-2012 webview xamarin xamarin.android

我使用 xamarin for visual studio 创建了一个 android webview 应用程序。当我在 Debug模式下运行此应用程序时,它成功运行,但是当我尝试将配置模式从调试更改为发布时,webview 不会加载 url。

我更改配置模式的原因是我无法在 Debug模式下导出 android apk。要导出 android apk,我需要更改配置模式以发布。

最佳答案

在 androidmanifest.xml 文件中添加以下标签将允许访问互联网。

<uses-permission android:name="android.permission.INTERNET" />

所有功劳都归功于 Jason。

关于android - Xamarin webview 在 Release模式下不工作——Visual Studio 2013 和 2015,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31217240/

相关文章:

asp.net - 如何在 IIS 上配置 Web Deploy 发布功能以便开发人员可以发布?

android - 禁用Webview的自动Linkify

android - Xamarin 表格 : Is it possible to add disclosure indicator in Android?

android - NoSuchMethodError使用Kotlin与新的Android数据绑定(bind)

debugging - 关闭调试堆有哪些负面后果? (_NO_DEBUG_HEAP==1)

webview - Flutter WebView 插件无法播放某些 YouTube 视频

java - webview 中的 Jsoup html 显示不起作用

android - Ios - 需要 Android 建议

android - 应用没有新的内容分级 - 无法上传 APK

visual-studio-2012 - 应用 Visual Studio 2012 更新 4 永无止境