简体   繁体   中英

Adding xamarin android controls to visual studio toolbox

I was working with Xamarin Visual studio and suddenly I just deleted some of the controls from Visual Studio toolbox pane in android designer.

I tried adding them using (right click on toolbox/choose items), but I don't know where the assembly of the controls live.

Does anyone know how to add the controls back?

simple fix

Deleting the *.tbd in the following dir on Windows worked for me...

C:\Users[Current user]\AppData\Local\Microsoft\VisualStudio\version of
visual studio\

sometimes the file was hidden so do this.

go to this folder

"C:\Documents and Settings\\Local Settings\Application
Data\Microsoft\VisualStudio\version of visual studio"

that's it. Happy Coding

Yo need to have Android SDK tools and Android SDK platform tools both installed. In my case Android SDK platform tools was not installed for some reason. Got Visual studio-->Tools-->Android-->SDK Maanger and check if both the tools are isnatlled. If not please install both the packages.

Also you have to have the latest Android SDK installed. This worked for me.

For me deleting *.tbd didn't work. I installed the latest Android SDK + Reinstalled Xamarin for windows did the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM