問題描述
我在 Jenkins 代理后面的公司網絡中的服務器上構建 android 項目時遇到了問題.已經嘗試過 jenkins gradle 和 gradlew.以下是開啟調試模式后的錯誤信息.
這是 gradle.properties 的內容.
我嘗試使用 jvm 標志傳遞代理設置,并嘗試了 gradle 版本 3.3 到 3.5.有什么我遺漏的嗎?
對我來說 問題 是 http
前綴!如果是這種情況,請刪除 http/https
前綴!
我的 gradle.properties 是這樣的,但失敗了:
<小時><塊引用>
為 gradle 設置代理設置的正確方法是:
I'm running into issues building android projects on a server in a corporate network behind a proxy on Jenkins. Have tried with both the jenkins gradle, as well as gradlew. Below is the error message after turning on debug mode.
This is the contents of gradle.properties.
I have attempted passing in proxy settings with jvm flags, and tried gradle versions 3.3 to 3.5. Is there anything that I'm missing?
For me the issue was the http
prefix! If this is your case, remove http/https
prefixes!
I had my gradle.properties like this, and was failing:
Proper way to set proxy settings for gradle is:
這篇關于Gradle 安裝有代理問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!