我在我的项目中实现了UIL。我收到了以下错误:
ImageLoader﹕ Unable to resolve host "d1l025sgu0zsw9.cloudfront.net": No address associated with hostname
我在清单中的权限是:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
为什么我收到此错误?
更新:CloudFront似乎存在问题。如果我不使用它,S3网址可以正常使用。
答案 0 :(得分:1)
您的网址出错,这就是为什么您的网址
ImageLoader﹕ Unable to resolve host "d1l025sgu0zsw9.cloudfront.net": No address associated with hostname
hostname= null
如果我的上述陈述是真的,那么
your url you are passing to the query string is not starting with your hostname like www.abc.com. or you have to pass some headers in your http hit.
either make your string by harcode the host name like : www. + your url or pass the requested headers. your manifest permissions are fine.