All Questions
14 questions
0
votes
0
answers
162
views
Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'
Here is the error that I am facing while launching flutter application on andoid mobile:
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
* ...
2
votes
0
answers
881
views
How to handle/fix android.os.DeadObjectException in Android TextToSpeech
I am encountering a crash in my Flutter app related to a custom Flutter plugin that handles Text-to-Speech functionality on the Android side. Specifically, after the app has been running for ...
1
vote
0
answers
269
views
FLutter Android Plugin, onDestroy function is not attached to the plugin class
i am creating a plugin with the onAttachedToEngine function that i use to assign context and mediaPlayer session to variables, exactly like the docs say so nothing special is being done. The problem ...
0
votes
2
answers
459
views
How to run a Android Toast in a custom flutter plugin?
I am having some problems displaying a simple toast in a plugin I created in flutter. I will share some of my relevant code.
Here is my plugin class
public class somePlugin implements FlutterPlugin, ...
5
votes
1
answer
3k
views
How *Exactly* to Access Flutter Assets From Within Android Java *Plugin* Platform Code?
We want to define a Flutter asset that can be accessed from the Android platform code within the same plugin. The documentation for this is purported to be here.
Please note we are NOT talking about ...
2
votes
0
answers
112
views
prevent flutter plugin screenshot
I have used and tried Flutter window manager and Also added secure flags in the Main activity. It prevents the screenshot in the rest of the app, but when I open Epub files using epub_viewer, Inside ...
2
votes
0
answers
316
views
Flutter - Platform Exception: Cannot add a null child view to a ViewGroup
I am trying to show a Banner Ad from native java code to Flutter. I've tried seeing multiple plugins to write my code however when my app debugs it always shows me the error - Unhandled Exception: ...
2
votes
0
answers
280
views
Accessing DecorView of the Flutter Activity in android native using a self created plugin
I want to access the flutter activity's decorView in my native code. I created a plugin which give me access to the apis in the android native code. One of the api is
public void setActivity(Activity ...
3
votes
0
answers
186
views
How to access MethodChannel from a Java's Service class?
I am new to writing native Android Java code.
I'm trying to invoke a Dart method using Flutter's MethodChannel from another Java class that extends a Service and doesn't have the ...
0
votes
1
answer
567
views
androidx.mediarouter.app.MediaRouteButton throwing android.view.InflateException because of translucent background
I have been working on a flutter plugin for the last few days. I am trying to implement and existing media player into a flutter widget. However since the media player's SDK uses MediaRouteButtons in ...
1
vote
0
answers
163
views
How can i render the button to main.dart file? Also, is there any way to pass the arguments to named route without using on pressed() of any button?
This is main.dart, currently arguments are passed inside on pressed() of button,I request to suggest a way(if any) to pass the parameters from main.dart(of example) to plugin.dart without using button!...
3
votes
0
answers
243
views
Flutter - cannot access listener in Native code
I am trying to make a plugin for an SDK in Flutter, I have written my entire code in Java however when I compile my file and my java/io file gets generated it shows me the error that it cannot access ...
1
vote
1
answer
2k
views
implement a java local library to flutter plugin template
i'm trying to add a local library to a flutter plugin project.
the library is created directly in the root folder of the flutter project (not in the android folder)
So here is the structure:
...
4
votes
1
answer
3k
views
Convert Cordova Plugin to Flutter Plugin
I'm now converting my Android POS App to use Flutter Framework, my existing App was using Cordova Framework.
For this POS application, I used Cordova Bluetooth Printer Plugin to deal with a portable ...