Is there any alternative to flutter package call_log? - android

I've a flutter application which uses call_log flutter package to sync call logs between various devices. But currently I'm facing issues on latest android devices version 11. The error is:
The plugin call_log uses a deprecated version of the Android
embedding.
To avoid unexpected runtime failures, or future build failures, try to
see if this plugin supports the Android V2 embedding. Otherwise,
consider removing it since a future release of Flutter will remove
these deprecated APIs. If you are plugin author, take a look at the
docs for migrating the plugin to the V2 embedding
My app is crashing on latest android devices (version 11) and I'm not able to run on debug mode too.
What are the alternatives present? Shall I downgrade flutter version or wait for call_log package for new updates? My flutter version is 2.5.1. Call_log package version is 3.0.3. It was last updated in May month. call_log package
I'm just new in flutter so suggest me something I can do instantly to resolve this issue.

Related

Registrar is deprecated. Deprecated in Java

I'm getting this warning: 'Registrar' is deprecated. Deprecated in Java' any time I run flutter build apk. This is the error dialogue in android studio:
:\Users\df\Desktop\flutter.pub-cache\hosted\pub.dartlang.org\app_settings-4.2.0\android\src\main\kotlin\com\example\appsettings\AppSettingsPlugin.kt:16:48: warning: 'Registrar' is deprecated. Deprecated in Java
import io.flutter.plugin.common.PluginRegistry.Registrar
^
I run flutter build apk and this error always pop up
The warning you're seeing is indicating that the class 'Registrar' is deprecated in the app_settings library you're using (version 4.2.0). This means that the class is no longer recommended for use and may be removed in a future version.
This class is part of the Flutter plugin system and is used to register plugins with the Flutter engine. In the latest versions of Flutter, the plugin registration process has been updated and the Registrar class is no longer needed.
To resolve this warning, you can try updating to a newer version of the app_settings library that does not use the deprecated Registrar class. You can check the latest version of the library on the pub.dev website.
Alternatively, you can try using a different library that provides similar functionality and is compatible with the latest version of Flutter.
It's also good to check that your app's dependencies are up-to-date and that you have the latest version of the Android Studio and all the necessary dependencies installed.
You can also try cleaning and rebuilding the project and running the app on different emulators or devices to see if the issue is specific to the device you are currently testing on.

Flutter Plugin migrating to supports the Android V2 embedding

I work on a Flutter mobile app project and we use flutter_stripe_payment plugin there. But author doesn't support it anymore and we facing the issue when trying to upgrade flutter higher that 2.2.3
The plugin `stripe_payment` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
I forked the library repository and applied migration steps and replaced the link in yaml file to
stripe_payment:
git:
url: https://github.com/ldemyanenko/flutter_stripe_payment
ref: master
But I'm still facing the same issue. I'm not sure what I'm doing wrong. The code and the latest two commits with migration are here
p.s. I tried official flutter stripe live from https://pub.dev/packages/flutter_stripe. But it looks like it's a bad fit for us as there is no way to add a cart to saved payment methods through custom ui there.

The plugin `kommunicate_flutter` uses a deprecated version of the Android embedding

I try to upload kommunicate_flutter: ^1.1.3 in my flutter android app becasue I want to add chatbot in my app but I face this problem , can anyone help me please?
The plugin kommunicate_flutter uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding.
Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration
This has been resolved in the new versions of Kommunicate Flutter.
Upgrade Kommunicate Flutter's version to resolve the issue.
The Latest Version is 1.4.5.
You can check this link for release notes & other details.
Thanks

With Android Studio 4.1 update 'Plugin incompatible with the new build found: Firebase Services' There is a warning message

In the notice of the update of android studio, in red letters as above
Plugin incompatible with the new build found: Firebase Services
I get a warning as above,
I don't understand the meaning.
Does this mean that Firebase related packages will not work after updating android studio?
Should I not update android studio?
However,I think that there seems to be no option to never update android studio
I'm currently building an app using Flutter and Firebase,
but depending on the project, the version of the Firebase related package
may be different, what should I do?
There is no error with my android studio. i am using on Ubuntu.
Late but answering for future help.
Android studio have plugin market place (you can find it at File->setting->plugin). Whenever android studio plans to release an update, it gives beta release first. Meanwhile, most of the plugins, update their plugin accordingly.
In your case, you are facing a warning because Firebase Services plugin had not ready the update for the time being, but in some cases, the plugins release their updates which will be available after you update the android studio. So it is safe to update to the latest android studio.
If you still facing plugin incompatibility warning, disable the plugin until the update will live. It happens only if you are using the low rated plugin. Sometimes, incompatibility warning also appears if your android cache become mess for the system. So cleaning the cache from C:\Users\username\AppData will resolve the issue. Or you can also choose to remove the old android studio files while updating the android studio. But there might be cases that your system do not remove files completely, so remove them manually.

Identifying culprits for numerous XA0106 warnings when building Xamarin.Forms app on Android

We have a Xamarin.Forms application which uses quite a few packages.
When building, we're getting hundreds of XA0106 warnings like this one:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Warning XA0106: Skipping Musterd.Droid.Resource.Attribute.MediaRouteControllerWindowBackground. Please check that your Nuget Package versions are compatible. (XA0106) (Musterd.Droid)
I know that this is because of mismatches between support libraries used by packages. The problem is finding out which one(s)!
Is there any tool or build setting I can use which will help me home on which packages are causing this and so which I can/should update?
This can happen when the version of the Android SDK you are using is different to the version of the Android support packages used by your app. The support packages are versioned in a way that should match the compile time Android SDK.
The best fix is to always use the latest of both.
Update your Android SDK to have the latest stable installed.
Make sure your app compiles against the latest version in the project settings.
In the Android project update all NuGet Packages that start with Xamarin.Android to the latest version.

Categories

Resources