user11640506
user11640506

Reputation: 97

Drawable folder not found in Xamarin.Forms

When ever I drag an image to drawable folder it shows an error message path not found iam using visual studio 2019. So I used URL but it is unreliable as some images fail to load when there are several images in the app. Iam creating a view cell with images I have created the drawable folder and added it in code but it is not working

Upvotes: 1

Views: 4540

Answers (3)

  1. Exclude drawable folder from project

    1. Exclude drawable folder from project

  2. Add drawable folder as existing folder

    2. Add drawable folder as existing folder

Upvotes: 0

Saamer
Saamer

Reputation: 5099

The issue is that it seems like you are manually dragging it to the folder, and so it is not getting "included" into your project through Yourproject.Droid.csproj file.

Follow theses steps Inside your Visual Studio:

  1. right click on the drawable folder,
  2. select "Add Files",
  3. then find your file and "Open" it, and
  4. in the following window, (shown below) select "Copy the file to the directory and press OKVS Window that pops up

And now your error should go away

Upvotes: 0

Piyush Priyadarshi
Piyush Priyadarshi

Reputation: 21

You can create it manually. It will have mipmap folders instead. But you can add drawable folder manually and it will work as it should.

Upvotes: 1

Related Questions