【发布时间】:2021-11-10 06:02:25
【问题描述】:
我正在使用 Android Studio 1.5.1,我正在使用一些 Paint.Net 图像 (.pdn) 以及一些 .pptx 格式的图标。 我看到了这个solution。
classpath 'com.android.tools.build:gradle:1.2.2' in gradle.properties
但是在应用它时我得到以下错误:
Error:Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle.
<a href="toggle.offline.mode">Enable Gradle 'offline mode' and sync project</a><br><a href="https://docs.gradle.org/current/userguide/userguide_single.html#sec:accessing_the_web_via_a_proxy">Learn about configuring HTTP proxies in Gradle</a>
我在 gradle.properties 下面添加了代理配置
systemProp.http.proxyHost=proxy.host.com
systemProp.http.proxyPort=portnum
systemProp.http.proxyUser=userId
systemProp.http.proxyPassword=passWord
systemProp.http.auth.ntlm.domain=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=proxy.host.com
systemProp.https.proxyPort=portNum
systemProp.https.proxyUser=userId
systemProp.https.proxyPassword=passwoRd
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
然后我得到这个错误:
Error:Cause: peer not authenticated
然后我读到了这个post,它说Gradle 版本在build.gradle 中必须是正确的。
classpath 'com.android.tools.build:gradle:1.2.2'
现在我陷入了僵局! Android 不支持 drawable 中的 .pdn 或 .pptx 吗?
【问题讨论】:
标签: android xml android-gradle-plugin