The file name must end with .xml or .png

I am using Android Studio 1.5.1 and I am using some Paint.Net images (.pdn) and also some icons in .pptx format. I saw this solution .

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

But on applying it I get the below error :

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>

I added below proxy configuration inside the 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

But then I get this error:

Error:Cause: peer not authenticated

and then I read this post, which says the Gradle version has to be correct in the build.gradle.

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

Now I am in a deadLock! Does Android not support .pdn or .pptx in drawable?

Answers


Does Android Studio 1.5.1 cant support .pdn or .pptx in drawable?

Android Studio does not support .pdn or .pptx as drawable resources.


Android accepts only .png, .jpg, .gif and .xml files as drawable resources. For more information look here


Need Your Help

Segfault with Asio on async_accept but can't figure out

c++ segmentation-fault boost-asio

I got a segfault in the following code, but I can't figure out why...

mongoose how to perform aggregation on ref fields

node.js mongodb reference mongoose aggregation-framework

How to perform aggregation in mongoose on the fields that are based on ref's of other schema..