question

Stesvis-5434 avatar image
0 Votes"
Stesvis-5434 asked LeonLu-MSFT edited

[Android] Invalid file path

I can't build my XF solution anymore, due to a build error such as:

Error invalid file path 'R:\Levitica\AWDServiceMobile\AWDServiceMobile\AWDServiceMobile.Android\obj\Debug\110\res\logo.png'. AWDService.Android


I tried to clean the entire solution, manually delete all the obj and bin folders, restart VS 2019, rebuild....no luck. I always get the same error, but if I open that path in file explorer, the log file is there:
146677-image.png

Last time I built the solution was when I made a package for the store, no changes after that except VS 2019 updates.

Is there a way to solve this and keep working?

dotnet-xamarin
image.png (76.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered LeonLu-MSFT edited

Hello,​

Welcome to our Microsoft Q&A platform!

Error invalid file path 'R:\Levitica\AWDServiceMobile\AWDServiceMobile\AWDServiceMobile.Android\obj\Debug\110\res\logo.png'. AWDService.Android

Please move your logo.png file to the Drawable folder or mipmap- folders(if you want to make your logo.png as application icon), do not put it in the Resource folder directly.

I notice your png's name is logo.png, if you want to change a new icon for your application. Here is thread about changing the icon for xamarin application.

If you want to know more details about there folders in the Drawable path, you can refer to default-resources thread.

Best Regards,

Leon Lu



If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.