簡體   English   中英

文件名必須以 .xml 或 .png 結尾

[英]The file name must end with .xml or .png

我正在使用 Android Studio 1.5.1,我正在使用一些 Paint.Net 圖像 (.pdn) 和一些 .pptx 格式的圖標。 我看到了這個解決方案

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

然后我讀了這篇文章,它說 build.gradle 中的 Gradle 版本必須是正確的。

classpath 'com.android.tools.build:gradle:1.2.2'

現在我陷入了僵局! Android 不支持 drawable 中的 .pdn 或 .pptx 嗎?

Android Studio 1.5.1 不支持 drawable 中的 .pdn 或 .pptx 嗎?

Android Studio 不支持.pdn.pptx作為可繪制資源。

Android 僅接受 .png、.jpg、.gif 和 .xml 文件作為可繪制資源。 欲了解更多信息,請看這里

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM