'Cannot resolve method 'LoadAd' in 'View' [closed]
So I am new to android programming. I'm trying to learn it so that I can work on my college project which is online food ordering application. So as being a newbie, I am refering to this video tutorials- https://www.youtube.com/watch?v=Ad41Bh704ms&list=PLaoF-xhnnrRW4lXuIhNLhgVuYkIlF852V
The uploader is using android studio version 2.3.3,while I am using android studio 3.3.1 . So I am aware that there are few changes here and there. Right now, I am stuck at one such change from that version of picasso....
I have used the exact code group as him, but to me,it gives error at "load" enter image description here
This is what it says- enter image description here
I have added this version of picasso as dependency in my build.gradle.. enter image description here Can anyone help me out here please? What could be triggering error in 'load',and how do I fix it? Thanks in advance
Solution 1:[1]
You did a typing mistake over there. A method that is started must be closed. What you typed:
Picasso.with(getBaseContext().load(food.getImage())).into(food_image);
What is should be:
Picasso.with(getBaseContext()).load(food.getImage()).into(food_image);
^
Check that you started the with() method and didn't close it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gourav |
