0
votes

I need to create an Android class library and add Xamarin.Forms and Xamarin.forms.Maps

So I created an empty project I get

Nuget Xamarin forms gives "this collection is read only" output

Added package 'Xamarin.Forms.2.5.1.444934' to folder 'C:\MyTemp\TestApp\packages'

Install failed. Rolling back...

So

I have cleared the nugetcache but nothing.

This is driving me mad and looked at bugzilla and it seems to be an issue but all the workaround do not fix it.

Can you create an android class library and add xamarin.forms and maps to it?

thanks

1
I believe this bug fixed in latest version, try to update VS to latest version (15.6.6) and try again. - Mehdi Dehghani
Downloaded 15.6.6 still same problem - developer9969
One thing I have noticed it works if you create an android blank app and not a classlibrary. what is the difference apart from the manifest ? can you convert it to a classlibrary? - developer9969
Why you need ClassLibrary? Why didn't use Xamarin.Form project template in the first place? - Mehdi Dehghani
Hi the reason I used an android class library is because I put all the code that is shared with other application CustomRenderers,utils etc.. Should I have used something else ? this class library is used by 3-4 app. What would you have used?thanks - developer9969

1 Answers

0
votes

In my case i have cleared the nuget cache and suppress the folder Cache at C:\Users\user_name\AppData\Local\Xamarin.Android for resolve this problem