无法解析 'View' 中的方法 'LoadAd'
Cannot resolve method 'LoadAd' in 'View'
所以我是 android 编程新手。我正在尝试学习它,以便我可以从事我的在线食品订购应用程序的大学项目。所以作为新手,我指的是这个视频教程-
https://www.youtube.com/watch?v=Ad41Bh704ms&list=PLaoF-xhnnrRW4lXuIhNLhgVuYkIlF852V
上传者使用的是android studio version 2.3.3,而我使用的是android studio 3.3.1。所以我知道这里和那里几乎没有变化。现在,我陷入了那个版本的毕加索的一个这样的变化....
我使用了与他完全相同的代码组,但对我来说,它在 "load" 处出错
enter image description here
这就是它所说的-
enter image description here
我已将此版本的毕加索添加为我的 build.gradle..
enter image description here
有人可以帮我吗?什么可能触发 'load' 中的错误,我该如何解决?提前致谢
这只是一个错字。而不是写
Picasso.with(getBaseContext().load(food.getImage())).into(food_image);
使用
Picasso.with(getBaseContext()).load(food.getImage()).into(food_image);
你在那边打错了。启动的方法必须关闭。您输入的内容:
Picasso.with(getBaseContext().load(food.getImage())).into(food_image);
应该是什么:
Picasso.with(getBaseContext()).load(food.getImage()).into(food_image);
^
检查您是否启动了 with()
方法并且没有关闭它。
所以我是 android 编程新手。我正在尝试学习它,以便我可以从事我的在线食品订购应用程序的大学项目。所以作为新手,我指的是这个视频教程- https://www.youtube.com/watch?v=Ad41Bh704ms&list=PLaoF-xhnnrRW4lXuIhNLhgVuYkIlF852V
上传者使用的是android studio version 2.3.3,而我使用的是android studio 3.3.1。所以我知道这里和那里几乎没有变化。现在,我陷入了那个版本的毕加索的一个这样的变化....
我使用了与他完全相同的代码组,但对我来说,它在 "load" 处出错 enter image description here
这就是它所说的- enter image description here
我已将此版本的毕加索添加为我的 build.gradle.. enter image description here 有人可以帮我吗?什么可能触发 'load' 中的错误,我该如何解决?提前致谢
这只是一个错字。而不是写
Picasso.with(getBaseContext().load(food.getImage())).into(food_image);
使用
Picasso.with(getBaseContext()).load(food.getImage()).into(food_image);
你在那边打错了。启动的方法必须关闭。您输入的内容:
Picasso.with(getBaseContext().load(food.getImage())).into(food_image);
应该是什么:
Picasso.with(getBaseContext()).load(food.getImage()).into(food_image);
^
检查您是否启动了 with()
方法并且没有关闭它。