Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not find a part of the path 'AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.class'

while building xamarin forms android app in debug mode I am getting following error

Unable to remove directory "obj\Debug\90\android\bin\classes". Could not find a part of the path 'AccessibilityManagerCompat_AccessibilityStateChangeListenerImplementor.class'.

unable to find resolution for this as line number is not shown

like image 706
Nitin S Avatar asked Sep 01 '19 09:09

Nitin S


4 Answers

Your path to the solution could be too long. I solved this by moving my solution closer to the C drive root. Also take into account that your application might not have sufficient rights to access that location, so make sure you give the necessary access rights.

like image 185
LYper Avatar answered Nov 09 '22 01:11

LYper


Manually delete your bin/obj folders from your Solution, and then try to rebuild.

Usually this does the trick, since it is trying to remove a class that he cannot find a path of.

like image 40
Bruno Caceiro Avatar answered Nov 08 '22 23:11

Bruno Caceiro


Manually deleting the obj\Debug\90 folder and subsequent build worked for me.

Clean and Rebuild didn't do it for me.

like image 1
Gigashack Avatar answered Nov 09 '22 00:11

Gigashack


You need to make sure that the path is short and you dont have any spaces or special characters in the path to your project

The latter one was the issue that haunted me for a while.

For example: C:/abc xyz/ProjectName/... is unacceptable because there is a space between abc and xyz.

I don't exactly know why but this works for me

Happy coding!

like image 1
Ahmad Uzair Avatar answered Nov 09 '22 01:11

Ahmad Uzair