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:
Related
I am trying to upgrade an Android App to build under VS2022 and use the latest nuget packages. I am also trying to modify it so that it will work on phones, and not just tablets, so the display needs to scale properly. (This is an old project that started with VS2010, so there are many legacy problems.)
When I build it, I get the error message:
resource dimen/abc_action_bar_icon_vertical_padding_material not found.
The offending axml code is:
android:textSize="#dimen/abc_action_bar_icon_vertical_padding_material"
I know that this comes from the depreciation of R.dimen and that I should upgrade from the support library to AndroidX. I thought that I had done this.
My question is, How do I fix this? Should I add or delete packages? If I declare the value explicitly, what should I use? This happens in many files, so I want to make sure that it is fixed correctly.
I also get the message:
attribute menu not found
from the code:
app:menu="#menu/navigation_menu"
I assume this is a related problem.
Thanks,
Dan
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.
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 am trying to migrate a project that was previously developed in Eclipse over to Android Studio. The way the project was structured had caused a ton of issues when first importing. Most of those have been resolved, however there is one that persists.
The project uses zXing, which itself is a module in the project. There is no issue when referencing the module in code, autocomplete recognizes the library and features inside of it, but when Gradle tries to build I get this error:
error: package Intents does not exist
I've searched for similar scenarios but have not been able to find anything useful. This post is almost exactly what I'm dealing with. Any additional suggestions and advice would be greatly appreciated!
Looking into the build.gradle for the zXing library, changing 'minifyEnabled' from true to false seems to fix the issue.
I'm'trying to use the pjsip lib for android, after reading some sites talking about the topic I still wondering how to use it.
Many examples suggest to start it building the apjsua folder in the downloaded package but I cannot find it in /pjproject-2.1.0/pjsip-apps/src/
I have all the other sources put not apjsua, does this folder have another name since the new version?
Thanks for your reply.
PJSIP has not yet released there Android version, it is only for testing purposes.
You can find the PJSIP projest for android in branches. Here is the link : http://svn.pjsip.org/repos/pjproject/branches/projects/android/
So I would suggest you to download the whole pjproject.
You can find the apjsua in pjproject/branches/projects/android/pjsip-apps/src/apjsua
In some versions its name is apjsua and in other versions its pjsua.
Checkout code from below link:
http://svn.pjsip.org/repos/pjproject/trunk
After checkout and building it with given commands on PJSIP getting started page, you will find it in following path:
PJSIP_DIR/pjsip_apps/src/pjsua/android/
For confirmation, you can check it by browsing code on following link:
http://trac.pjsip.org/repos/browser