Hey there,
I've only just recently started using Xamarin, so please excuse my ignorance.
I have an application which uses Facebook to log users in, and might (depending on the customer) post achievements, etc. to Facebook.
So far, so good, the UI is in tact, a bit laggy, mind you, but it works nonetheless. I now wanted to add the Facebook API, as I've done a few times before, with pure Java.
I added everything I needed to the manifest.xml, I added the v4 and v7 support libraries, and of course set everything up with Facebook.
Now, when I go ahead to compile the app, I get two compiler errors:
I've tried adding a colour named "transparent" to my colours.xml (transparent is the name the API is looking for), but to no avail. I've updated all the packages in hopes of fixing it that way, but nothing has helped.
Any ides or solutions would be very much appreciated!
Answers
@SimonCahill
your error complaining about atribute
cardElevation
andcardBackgroundColor
.Make sure you added
Xamarin.Android.Support.v7.CardView
package into your Solution.@RofiqSetiawan
I've added this library to the solution.
However, it still does not work. I've also cleaned and rebuilt the solution, also to no avail.
Ok, so after rebooting the machine, and restarting Xamarin Studio, the error mentioned above has gone. Maybe a caching problem or something of the sorts?
Anyways, now I get a different error:
Any ideas on this?
it means Xamarin Studio can't find your
Bolts.Tasks.dll
.is it from nuget package?
try to rebuild your solution.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Tool exited with code: 2. Output:
trouble writing output: Too many field references: 66329; max is 65536.
You may try using --multi-dex option.
https://github.com/xamarin/FacebookComponents/issues/27