I have a project that uses the NuGet package System.Data.SQLite for accessing the DB.
At compile time all works fine, but at runtime when I initialize the connection this error occurs:
System.DllNotFoundException: SQLite.Interop.dll
I have tried to install the NuGet package System.Data.SQLite.Core but nothing changed.
How can I solve this? Anyone has found this error too?
Thank you!
I have checked the tags and the dependency of the package, it seems the package doesn't support Xamarin. In addition, there were two existed case which had the same problem. You can check this two case.
Both of them used the Microsoft.Data.SQLite instead of the System.Data.SQLite. So you can also choose to use this package.
Related
I really don't know if this is specific to the package or to xcframework or to the setup. In my case I just:
open VS 2022
create a Xamarin iOS empty project
add the Google Mobile Ads 8.13.0.1 Nuget package through the VS NuGet package manager ( this is the package https://www.nuget.org/packages/Xamarin.Google.iOS.MobileAds/)
build
get this error:
C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache\GAppM-8.9.1\GoogleAppMeasurement-8.9.1\Frameworks\GoogleAppMeasurement.xcframework has an incorrect or unknown format and cannot be processed.
I've been using google ads in iOS projects for 10 years, updates tend to screw everything up, but it's usually fixable, this time I'm completely stuck.
I tried filing a bug report (https://developercommunity.visualstudio.com/t/GoogleAppMeasurementxcframework-has-an/10153891?entry=problem) and an issue on github (https://github.com/xamarin/GoogleApisForiOSComponents/issues/573) , but experience tells me it's useless...
[EDIT]
The project is here:
http://www.andreasabbatini.org/Files/AdmobTest.zip
Answering my own question:
I “think” I have found a solution, if not the cause. I cannot replicate it relably, but sometimes it happens sometimes not.
(in a brand new PC or VS install)
1-Create a project similar to that one. Add the Google Ads NuGet package. Build. The build works
2-Create another project (or use that one, it’s the same). Add the same Google Ads NuGet package, then the Xamarin.Facebook.AudienceNetwork.iOS 6.9.0.1 https://github.com/xamarin/FacebookComponents/tree/main/Facebook.iOS/source/AudienceNetwork
build this or the other project, for some strange reason, the above error starts to appear
3-remove the above facebook package, the error is still there. I’ve tried many things here, readding packages, etc none work
4-remove the packages, delete manually C:\Users\Admin\AppData\Local\XamarinBuildDownloadCache and readd the packages one at a time. Most of the time it works, but sometimes I have to repeat this step.
I recently updated Visual Studio 2019 to 16.9. When it updated- there was a message indicating that the Android SDK was updated. When I go to run the IOS version of my Uno Project- it runs fine. However- when I go to run it on the Android version- I have had a few issues. At first it would not compile- but after doing some web searches I found I needed to reenable AAPT. I am now able to compile it- but I get an exception when I run the app on my android device. It says no virtual method getTargetState()- and then lists the library as the picture shows. I checked Nuget for any package updates and applied them- but still have the same error. It is showing a method missing- that presumably was there earlier. I am not sure how to resolve this- so any help would be appreciated.
I started thinking about what Leo Zhu said above and it made me think- there was no update to the package mentioned. Maybe there was a breaking change in the package that was installed? So- I downgraded it to 2.2.0.3- and it is working again. One point to make is I was using the latest alpha release- so a breaking change is not surprising. I hope this helps someone else that encounters this issue or a similar issue.
I try to load a F# project with Visual basic 2011 beta and I have the following issue, which appears for the first time :
There is a missing project subtype.
Subtype: '{5B89FCC2-C9F6-49a8-8F8D-EDDCC3FDC9E9}' is unsupported by this installation
Do you know how I can solve this problem?
At some point (VS2010?) you installed the FsProjectExtender to get some extra functionality available to F# projects in Visual Studio. Just re-install that extension again for VS2011 and you should be OK, or remove the dependency in the .fsproj file as noted by #Brian.
I don't know what that guid is for (Bing search did not turn up much), so you might simply try removing it from the ProjectTypeGuids in the .fsproj file (leaving only f2a71f9b-5d33-465a-a702-920d77279786 which is for the F# project system).
I've been happily developing SpecFlow tests on this machine for a while now. Today when I changed some tests and tried to regenerate them I keep getting
Custom tool error: Could not load file or assembly 'TechTalk.SpecFlow, Version=1.8.1.0, Culture=neutral, PublicKeyToken=0778194805d6db41' or one of its dependencies.
I have SpecFlow 1.8.1 installed on my computer and am pulling in the SpecFlow package from NuGet. I've tried reinstalling both of these components with no luck.
Any suggestions as to why this might be happening or where I should go to find more information would be much appreciated.
You need to add reference to the SpecFlow dll into your project AND set its "Copy Local" property to TRUE. Then it should work.
However, if you are trying to run the ms test from TFS, then you may still get this error. (I'm still trying to find out how to fix that.) But at least the above should fix your immediate problem.
I am working on PhoneGap BlackberryWebWorks i have install BlackBerry WebWorks plug-in:2.5.1 and Blackberry WebWorks SDK:2.0.0. and PhoneGap 0.9.4.but while building the project in eclipse i am getting the following error
Errors occurred during the build.
Errors running builder 'Faceted Project Validation Builder' on project 'PhoneGapSample'.
Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
I am not getting any idea how to proceed ahead to remove this error.If any one have any idea about this. it will help me to overcome from this error.
Thanks,
Sagar.
Per neo's comment, install Eclipse Java EE Developer Tools using the Eclipse -> Help -> Install new software -> Work with -> (your Eclipse version's download repository. e.g.:) Indigo.
In the filter field type, then checkbox, Eclipse Java EE Developer Tools.
Download, install, boom: no more errors. Well, not that error, anyway, YMMV.
Edit: Mayoayres added a comment below that may apply if you still get this error despite following these instructions. If you find it helpful, upvote his comment!
Right click on your project >>> Properties >>> Project Facets >>> uncheck Static web Module
Hope to help.
Regards,
In eclipse juno there is some cases the project facets doesn't display any contents...it will give a error named "invalid values for project facets"...So there is a need to do the following
project >>> Properties >>> Builders
and uncheck the faceted project validation builder....
The accepted answer didn't work for me, but I found a solution: you need to install into the Eclipse plugins/ directory the .jar for org.eclipse.jst.j2ee.ejb, because it seems like you need it, but Eclipse WST doesn't properly depend on it, so it is not always installed when it should be.
The issue is completely unrelated to PhoneGap or Blackberry development, by the way.
As a more generic answer, this is because you either imported a project which is dependent on uninstalled Eclipse plugins. I had this issue when migrating to Eclipse Juno. The easiest solution, just edit your .project file in a text editor and remove the conflicting elements. Usually, this is in the buildspec or nature section.
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
Keep a backup of your project file if you're not sure. You may always delete and recreate your project later on. It's easier to remove those references than to find and install the exact missing plugin versions.
In my case I was using Thymeleaf Eclipse plugin for thymeleaf content assist in my project and got these message in Eclipse Juno,
Errors running builder 'Thymeleaf Validation Builder' on project 'site'
Solution:
Select project
Project -> Properties -> Builders
Uncheck the Thymeleaf Validation Builder
Uncheck the builder corresponding to your error message and hopefully your problem gets resolved.