且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gradle同步失败:原因:无法在MacOS上找到到所请求目标的有效证书路径

更新时间:2022-02-26 22:23:07

几天来,我一直被完全相同的错误困扰,就像您一样,我几乎尝试了所有事情.

I've been stuck with the exact same bug for several days, and like you I tried pretty much everything.

最后,我注意到Android Studio中的某些内容.我转到了Http Proxy首选项选项卡,然后看到一条消息,提示

Finally I noticed something in Android Studio. I went to the Http Proxy preference tab and I saw a message saying

您具有JVM属性"https.proxyHost";设置为"localhost" ....

You have JVM property "https.proxyHost" set to "localhost"....

我尝试通过放置以下行来覆盖此值:

I tried to override this value by putting the line :

systemProp.https.proxyHost =

在我的项目gradle.properties文件和tadaaa中!它有效,但我不太了解发生了什么...

In my project gradle.properties file and tadaaa ! It works, I don't really understand what happened though...

希望能有所帮助;)