System.MissingMethodException: Method 'Xamarin.Forms.Element.set_AutomationId' not found - xamarin.android

When I am making a Barcode Scanner Using ZXing Nuget Package. As I am new to the Xamarin, When I run it in the Xamarin.forms. I am receiving that error. I have the updated version of Xamarin.The program shows me the runtime Exception as mentioned in the title.

This is more than likely due to the version of Xamarin.Forms that you are referencing. You need to make sure that your version of Xamarin.Forms is at least version 2.2, which has the AutomationId support.

Related

How to test if flag BUILD_LIBRARY_FOR_DISTRIBUTION = TRUE works

I got a complaint from a client that library i made was throwing an error when they try to import it. Error is saying: "Module compiled with Swift 5.3 cannot be imported by the Swift 5.4 compiler". After some research i found out about ABI, and I understand the cause of this error.
Now I want to test if this solution works before shipping the fix. I downloaded a few older toolchain versions hoping that by switching them I could simulate this kind of situation. Setting the distribution flag for the library, building it with older toolchain and then importing it to a project with newest version of toolchain. However I still get the same error. Im I doing this right? What I am missing?

Using full Dart SDK with Flutter

Is there any way to tell Flutter use more newer dart sdk version? I found it a bit tricky, because it checks some hashes in flutter/bin/cache/*.stamp. And when I'm trying to make a symbolic link to homebrew installed dart sdk it cannot build flutter_tool. To do that I've removed flutter_tool.stamp and flutter_tool.snapshot files. Something else needed?
I'm not actually sure if it is a need or not, but these tools are still in beta, for me it sounds logic to use edge versions.
Flutter ships with a customized Dart SDK (for example with the web parts stripped).
The Flutter SDK is tightly bound to a specific Dart SDK version and there is no reliable way to make Flutter work with any other Dart SDK than the one it is installed with.

Error working with two frameworks in Xcode

I need to work with two third party frameworks in my Xcode project but the two of them use Google's Protocol Buffer library and they were compiled against different versions of that library. Both frameworks work fine separately but when I try to use them in the same project I get this error message:
[libprotobuf FATAL /Users/jari/dev/indooratlas-sdk/indooratlas-ios-sdk/target/framework/IDAAlgorithm/cpp-algorithms/cpp/protobuf/protobuf-cmake/protobuf-2.6.0/src/google/protobuf/stubs/common.cc:72] This program was compiled against version 2.4.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (2.6.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "".)
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: This program was compiled against version 2.4.1 of the Protocol Buffer runtime library, which is not compatible with the installed version (2.6.0). Contact the program author for an update. If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library. (Version verification failed in "".)
The error message states that I should contact the program author to get an update but I would like to know if there is something that I can do to fix the problem.
If you have the source code for the frameworks, you should be able to compile them both using the latest version of Protobufs. You will need to regenerate all of the .pb2.cc and .pb2.h files using the latest protoc and link against the latest library version.
If you do not have the source code for the frameworks, then you need to contact the authors and ask them to compile against the newer Protobufs. Without code there is no way to do this yourself.

System.DllNotFoundExeption has been thrown (Xamarin,MonoGame,and XNA)

I installed XNA 4.0, the latest version of Xamarin, and the latest version of MonoGame. I loaded up a brand new Open GL solution and got this error.
System.DllNotFoundException: Unable to load DLL 'openal32.dll': The specified module
could not be found. (Exception from HRESULT: 0x8007007E) ---> System.Exception:
at at OpenTK.Audio.OpenAL.Alc.OpenDevice(String devicename)
at at Microsoft.Xna.Framework.Audio.OpenALSoundController..ctor()
at at Microsoft.Xna.Framework.Audio.OpenALSoundController.get_GetInstance()
at at Microsoft.Xna.Framework.OpenTKGamePlatform..ctor(Game game)
at at Microsoft.Xna.Framework.GamePlatform.Create(Game game)
at at Microsoft.Xna.Framework.Game..ctor()
at dgsdgsdgdsg.Game1..ctor() in
c:\Users\Josh\Documents\Projects\dgsdgsdgdsg\dgsdgsdgdsg\Game1.cs:0
at dgsdgsdgdsg.Program.Main() in
c:\Users\Josh\Documents\Projects\dgsdgsdgdsg\dgsdgsdgdsg\Program.cs:0
Try installing OpenAL...
The link points to the the installer for OpenAL.
Upgrade your video drivers.
MonoGame is pretty picky about what OpenGL version you have installed. I don't know exact version required (it has changed over time) but refer to this discussion for more information.
You can also download the OpenGL caps viewer to determine which version you are currently running.

InvalidCastException when casting to Applicaiton class after Mono upgrade

I just started up my project in MonoDevelop again after not having looked at it for a few months. Of course there was a new version for Mono, MonoDevelop and Mono for Android.
As soon as I run the app I get a InvalidCastException when casting to my Application class in one of my activities:
Error:System.InvalidCastException: Cannot cast from source type to destination type.
The line comes from
ConferenceApplication conferenceApplication = ((ConferenceApplication)base.Application);
When I print the base.Application.Class it reports mono.android.app.Application and not my own application class. My application class is denoted with [Application] and extends Android.App.Application.
I'm pretty confident that the app has not been changed since the last time I ran it. What could the cause for this problem be? And how can I fix it?
I'm using the Beta channel for updates.
MonoDevelop 3.0.4.7
Mono 2.10.9
Mono for Android: 4.2.8
I downgraded to latest stable of Mono for Android - 4.2.6 - and it all magically just worked.

Resources