标签: not

6 篇文章

thumbnail
android 9.0出现联网报错问题 CLEARTEXT communication not supported
from--https://www.jianshu.com/p/1d481b837eea 1、Android 9.0 从网络获取数据时会出现个弹窗错误  错误如图 图(1) 出现这种问题很好解决 1、新建 res/xml/network_security_config.xml 文件  如图(2) 图(2) 2、network_security_config.xml文件中 <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true" /> </network-security-config>       &n…
AssertionError:Torch not compiled with CUDA enabled
from--https://blog.csdn.net/m0_59705760/article/details/125737765 问题来源: 在进行 pytorch 的本地 GPU 版本安装过程中屡次碰壁,第一个问题是在 pytorch 官网给的下载命令行执行不成功,第二个是成功在本地 GPU 下载 pytorch 后执行将向量值挪到 cuda 0 上时系统报错,内容为标题所示,这两个问题的具体解决方案如下所述。 解决方法一: 首先对于第一个问题,由于我本地下载的 cuda version 为11.7,但是由于 pytorch 官网没有更新到 cuda 11.7 版本对应的 pytorch,最高版本只有 cuda 11.6 对应的 pytorch,故我选择下载 cuda 11.6 对应的 pytorch 版本。值得注意的是,若你的本地 c…
Could not find method compile() for arguments [directory ‘./lib/‘] on object
from--https://blog.csdn.net/weixin_38106322/article/details/122893719   gradle项目编译时报的错,没学过gradle,所以具体原因看不出来,猜测是版本原因,这里只分享下解决方案。 bulid.gradle原信息是: 修改compile为implementation,如下: 之后即可编译成功
thumbnail
Lost ability to connect to my HTTPS site from Android application: Trust anchor for certification path not found
from--https://stackoverflow.com/questions/68065697/lost-ability-to-connect-to-my-https-site-from-android-application-trust-anchor Ask Question Asked 2 years, 2 months ago Modified 2 years, 2 months ago Viewed 374 times 0 I have two mobile applications, which access my site https://example.com from inside. Recently, I have prolonged certificate for one year and replaced it …
OKHTTP 错误CLEARTEXT communication not supported
from--https://blog.csdn.net/xyx2999/article/details/83987062 测试机android9.0的pixel2, 开发用的android api28, com.zhy:okhttputils:2.6.2 服务器用的http而非https 按照https://blog.csdn.net/xyx2999/article/details/82984501进行了配置,连接服务器报错 CLEARTEXT communication not supported: [ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA…
thumbnail
安卓P网络请求中CLEARTEXT communication not supported问题解决
from--https://www.jianshu.com/p/798037d2b12c 安卓P网络请求中CLEARTEXT communication not supported问题解决 OKhttp在高版本请求过程中会出现CLEARTEXT communication not supported问题。 其实这个问题非常简单。 这个问题是由于安卓9开始,不容许未加密就进行网络数据交互。 所以使用http的朋友,会遇到这个问题。 解决这个问题的方法很多。 第一,跟公司讲,把APP请求的http改用https请求。后台应该不会屌你。 第二,把你的targetSdkVersion 降到27以下。对这个问题在高版本的targetSdkVersion 和高版本安卓机才会出现。所以更改一下。但是不能从根本上解决问题。 第三,更改网络安全配置。 有2种…