Android Picasso Library NoClassDefFoundError

时间:2015-07-14 02:44:14

标签: android noclassdeffounderror picasso

我是Picasso库的新手,我不确定用(context)方法放入上下文参数,我尝试了这个+ getApplicationContext()并且它失败了任何帮助都会受到赞赏

    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    ImageView iv = (ImageView) findViewById(R.id.imageView1);
    Picasso.with(this).load(R.drawable.appertizers_curly_twister_fries).into(iv);

}

0 个答案:

没有答案