我在下一行使用了毕加索:
ImageView im = (ImageView)findViewById(R.id.picassotest);
Picasso.with(this).setLoggingEnabled(true);
Picasso.with(this).load("http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg").into(im);
Run Code Online (Sandbox Code Playgroud)
但是当我运行应用程序时没有任何显示.我已经添加了INTERNET许可,但仍然没有任何反应.我从中获得的唯一日志记录是:
12-01 17:28:49.460 7453-7453/? D/Picasso: Main created [R0] Request{http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg}
12-01 17:28:49.463 7453-7472/? D/Picasso: Dispatcher enqueued [R0]+5ms
12-01 17:28:49.464 7453-7474/? D/Picasso: Hunter executing [R0]+6ms
12-01 17:28:49.476 7453-7472/? D/Picasso: Dispatcher batched [R0]+18ms for error
12-01 17:28:49.479 7453-7453/? D/: HostConnection::get() New Host Connection established 0xb42d6b00, tid 7453
12-01 17:28:49.701 7453-7472/? D/Picasso: Dispatcher delivered [R0]+243ms
12-01 17:28:50.265 7453-7453/? D/Picasso: Main errored [R0]+807ms
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
我没有得到点评论.
您是否尝试使用毕加索监听器来获取堆栈跟踪?
ImageView im = (ImageView)findViewById(R.id.picassotest);
Picasso picasso = new Picasso.Builder(this).listener(new Picasso.Listener() {
@Override
public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
exception.printStackTrace();
}
}).build();
picasso.with(this).setLoggingEnabled(true);
picasso.with(this).load("http://lacuadramagazine.com/wp-content/uploads/sangeh-monkey-forest-101.jpg").into(im);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2513 次 |
| 最近记录: |