SDK Manager update 消除SDK更新时的“https://dl-ssl.google.com refused”错误

消除SDK更新时,有可能会出现这样的错误:
Download interrupted: hostname in certificate didn't match: <dl-ssl.google.com> != <www.google.com>
Download interrupted: Connection to https://dl-ssl.google.com refused
Done. Nothing was installed.

解决办法是:将https://修改为http://
修改方法是:如下图,在Android SDK Manager->Tools-Options...选项界面,
将“Force https://… sources to be fetched using http://…”勾选!

如果还有错,可以在文件(C:\Windows\System32\drivers\etc\hosts)中,添加如下几行:
203.208.46.146 www.google.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com

将 'https://www.douyin.com/' 嵌入框架,违反内容安全策略指令 'frame-ancestors https://pc.xgo.bytedance.net https://tcs.bytedance.net https://*.douyin.com https://aidp.bytedance.com https://aidp.bytedance.net https://www.aidp-cqc.com https://lpds.cn.goofy.app https://lpds.boe.goofy.app https://tcs.jiyunhudong.com https://aup.jijixiangshangabc.com https://juren.bytedance.net https://juren.jiyunhudong.com https://byteworks.bytedance.com https://rock.bytedance.net https://rock.jiyunhudong.com https://rock.jijixiangshangabc.com' 被阻止,意味着浏览器依据该网站设置的内容安全策略(CSP)来判断是否允许页面在框架中加载。 CSP 的 `frame-ancestors` 指令用于指定哪些源可以在框架(如 `<iframe>`、`<frame>`、`<object>` 等)中嵌入当前页面。该指令列出了一系列允许的源,只有这些源的页面才能将当前页面嵌入框架中。当尝试从不在 `frame-ancestors` 列表中的源嵌入 'https://www.douyin.com/' ,浏览器会阻止该操作,以保护用户免受点击劫持等安全威胁。 例如,若要将 'https://www.douyin.com/' 嵌入到一个页面的 `<iframe>` 中,而该页面的源不在 `frame-ancestors` 指令所允许的列表内,浏览器就会拒绝加载该页面,并可能在控制台输出类似如下的错误信息: ```plaintext Refused to frame 'https://www.douyin.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://pc.xgo.bytedance.net https://tcs.bytedance.net https://*.douyin.com ...". ``` ###
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值