Charles 抓包

报错:Charles cannot configure your proxy settings while it is on a read-only volume.

解决方法:

在Mac终端中输入

1
2
sudo chown -R root "/Applications/Charles.app/Contents/Resources"
sudo chmod -R u+s "/Applications/Charles.app/Contents/Resources"

Android studio:connect refuse

https://www.jianshu.com/p/89872a0ee16f

AndroidStudio同步文件时同步失败,查找是不是开了代理,在AndroidStudio的Proxy中看到了这个提示,但是找到gradle.properties并没有这句话,一翻查找后找到了解决方案:

  • 命令行中输入
    JAVA_OPTS="$JAVA_OPTS -DsocksProxyPort"
  • AndoridStudio中InvalidaCaches/Restart

参考链接:https://stackoverflow.com/questions/35520337/how-to-remove-jvm-property-https-proxyhost

经常开Charls代理或者vpn的时容易出现这种情况。记录一下,以后好找。

参考文旦

https://blog.csdn.net/shadowyspirits/article/details/79756274