java.lang.NoClassDefFoundError:com.squareup.picasso.Picasso

编程入门 行业动态 更新时间:2024-10-24 07:27:03
本文介绍了java.lang.NoClassDefFoundError:com.squareup.picasso.Picasso的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我第一次尝试使用 Picasso

就像在官方网站示例中一样:

like in the official site example:

private void setItemBgImageUsingPicasso(View convertView) { String imageUrl = getImageUrlFromOffer(convertView); ImageView offerImage = ((ImageView) convertView .findViewById(R.id.offerImage)); Picasso.with(mOffersListActivity).load(imageUrl).into(offerImage); }

但我收到此错误:

08-09 17:37:43.309: E/AndroidRuntime(17821): java.lang.NoClassDefFoundError: com.squareup.picasso.Picasso 08-09 17:37:43.309: E/AndroidRuntime(17821): at com.zoomer.general.ImageAdapter.setItemBgImageUsingPicasso(ImageAdapter.java:384)

推荐答案

您应该将它放在libs文件夹中,Eclipse会为您正确打包。

You should put it in libs folder and Eclipse will pack it properly for you.

或者保持原样,但转到项目属性,导出选项卡并检查库。这样Eclipse就会将它打包到最终的APK中。

Or you leave it as it is, but go to project properties, Export tab and check the library. This way Eclipse will pack it in the final APK.

更多推荐

java.lang.NoClassDefFoundError:com.squareup.picasso.Picasso

本文发布于:2023-05-25 10:54:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/226606.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:NoClassDefFoundError   lang   java   Picasso   picasso

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!