I’m trying to add Realm to Xamarin project.
Project contain two platform-specific projects (Android and iOS) and PCL (.NET framework).
I can successfully add realm separately to each platform, but when I’m trying to move my code to PCL, I have an error “Fody not properly installed. PCLNamespace.MyRealmObject is a RealmObject but has not been woven.”.
I added NuGet Realm package to each project and PCL.
I tried Realm documentation FAQ “Failing to Weave”
and most of solutions from similar issue "Xamarin android Crash"
Non of that helped.
Finally I found what was blocking PCL to use realm. I’m posting an answer for those who would come across similar issue.
When I created new PCL I could add and use Realm without any errors. Making a diff of both PCLs give me an answer; faulty PCL had Microsoft.Bcl.Build packages, and when I delated it from project packages (via Xamarin Studio) that fix an issue.
Although I fix my issue, I’m not understanding how packages could block functionality of the other, so if somebody know an answer for that I would appreciate a comment:)
Thanks
Is your shared project a Shared Project or a PCL?
If it is a PCL, you also need to add the Realm NuGet to the PCL.
Related
i always use custom template on my own work to write less code
but on new version Android Studio 4.1 i can't find this directory ??
finally found a god way to automate my code and make custom template and modules
just by make a new android studio plugin
thank for Marcos Holgado for his topics and articles
you could find examples here
https://github.com/marcosholgado/plugin-app
and could learn more from this track
https://caster.io/courses/building-a-plugin-for-android-studio
I'm trying to create in Xamarin Android the Jitsi Bindings Library. I've got all the dependecies aar (66 items) by following this guide:
https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-android-sdk
(Maven repository https://github.com/jitsi/jitsi-maven-repository/raw/master/releases)
And this is the result so far: it is missing JitsiMeetActivity
Any help? Thanks
to generate the JitsiMeetActivity class, add the 'XamarinLibrary.Xamarin.Android.Facebook.React.ReactNative' nuget to the binding project and rebuild it.
I have the same issue..
It seems that the binding process misses all the classes that extend from a base class...
as an example try also looking for the JitsiMeetActivityInterface interface definition, its a really simple class but its also missing from the binding process as well as a few others.
Happy to work with you on this too if you like.
I'm struggling to use Sqlite.net Extensions in my Xamarin Android app.
I get the exeption:
Don't know about System.Collections.Generic.List`1 [app_name.Model.modelName]
The problem is similar to:
Sqlite extension is not working as expected
and
Use SQLiteNetextensions with Xamarin for Android-App
but the answers from there are not working for me and I can't add comments, so I have to start a new question.
I was trying to install different sqlite.net extensions packages and got no result.
Using SQLite.Net Extensions-PCL 2.0.0-alpha2 gives me such exeption:
System.IO.FileNotFoundException: Could not load assembly 'SQLite.Net, Version=3.0.5.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
Does anyone has a final solution to this problem, please?
Edit:
I had to create a new project and paste everything in from the old one.
I don't think that answers the issue, but it's enough for me...
I'm using Sql-net library:
https://www.nuget.org/packages/sqlite-net-pcl/
The link here you give is the right lib, but you really installing this package? Cause you also said that you're installing SQLite.Net Extensions-PCL 2.0.0-alpha2.
Please try to install the package in the following screenshot, the latest stable version is 1.3.3:
Im building a simple game with Xamarin/Cocossharp in a Shared Project.
I added some physics with Box2D and everything works well on WP8.1.
I import Box2D and i access to the methods and class provided without problem on Windows Phone, but when i try to compile it for Android it says that the type or namespace "Box2D" could not be found. Intellisense doesn't shows any error...
error output
I'm new to game dev and also to VS2015 so it may be something simple but i dont understand what I'm missing here.
Thanks in advance
After struggling around with this i managed to fix this:
As pointed out from Sven-Michael in his answer the solution was to install:
CocosSharp.PCL.Shared
from NuGet. In my case was only necessary to add the reference to the Box2D.DLL file contained into the package.
The reason why it was not working for me it's probably that because of trying to solve this problem I've messed up whit my solution and caused other problems. So I created a new Project from skratch and I've imported my source code again.
Ensure that you have installed CocosSharp.PCL.Shared to your Android project.
E.g. via PM-Comsole:
Install-Package CocosSharp.PCL.Shared
But it can be installed via NuGet, too. This will add box2d and some other dependencies automatically.
I just tried to update my project which uses Android Annotations to include the MonkeyTalk agent. However, as soon as I switch the project to an AspectJ project, all my Android Annotations references are not recognized.
Has anybody successfully used MonkeyTalk in an Android Annotations project?
I'm using Eclipse 4.2 SR2.
It looks like this issue has been raised on the Android Annotations FAQ:
https://github.com/excilys/androidannotations/wiki/FAQ#wiki-aspectj
In order to "fix" it, you have to remove / replace some project properties. I'm worried doing this will cause MonkeyTalk to not work, but I haven't tried it yet.
Any insight appreciated!
I was facing to this problem before. I added a solution in the FAQ page of AA. Could you test that and keep me updated ?
I had implemented the solution but still my android annotations references are not recognized,please let me know if there is any other way to tackle the same.