2
我有一個使用Jenkins構建的Android項目。 Jenkins在虛擬機上,因此無法訪問互聯網。 當我嘗試建立一樣,我收到以下錯誤:Jenkins:無法解析com.android.tools.build:gradle:2.2.2
> Could not resolve com.android.tools.build:gradle:2.2.2.
Required by:
:LocationSensing:unspecified
> Could not resolve com.android.tools.build:gradle:2.2.2.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom'.
> This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server (jcenter.bintray.com)
如何配置的gradle這個-2.2.2.pom文件脫機工作。我已經下載了這個文件,但不知道如何配置它以脫機工作。