Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info

Hi all, I was able to make a flutter ffi plugin run with the generated example project on iOS, but when doing so on Android, I seem to have JDK/gradle configuration issues, such as the following in my MainActivity.kt

Check your module classpath for missing or conflicting dependencies
Error running 'libmynative': No JDK specified for module 'mynative_example_android'
Cannot access 'android.app.Activity' which is a supertype of 'com.my.app'. Check your module classpath or conflicting dependencies

How should I go about this?

I do have the following dependencies specified in my build.gradle for the Android example app

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

So I assume that the system will find the JDK for me. On the other hand, I built another kotlin/NDK Android project, with the same version of Android Studio 3.6.3, which runs perfectly. I basically copied most Gradle settings from there.

onTap: navigationTapped,
currentIndex: _page,
```void navigationTapped(int page) {
// Animating to the page.
// You can use whatever duration and curve you like
setState(() {
duration: const Duration(milliseconds: 50), curve: Curves.ease);



void onPageChanged(int page) {
setState(() {
this._page = page;

Hi, its possible to save the result image of an image using the colorBlendMode property of Image.file?
Hello, everyone!
Flutter JSON Serialization - Not generating *.g.dart files
I tried to build project to receive json object by using json_annotation
but there is error Not generating *.g.dart files
what is the reason?
Sachin Goud
I am getting error "ImageFilter isn't defined for the class Paint' could anyone of you resolve the error
what is the reason?
[WARNING] json_serializable:json_serializable on lib/model/movie.dart:
Missing "part 'movie.g.dart';".
oh, I fixed it myself.
commend : flutter packages pub run build_runner watch
then write part 'movie.g.dart';
next compile
workerspartywayne Hello flutter people!
FlutterBluePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
why does this message appear?
Stream<NavigationStates> mapEventToState(NavigationEvents event) async* {
switch (event) {
case NavigationEvents.HomePageClickedEvent:
yield HomePage(); <-- HomePage I changed from StatelessWidget to StatefulWidget and it doesnt work
yield does not work anymore when changed from StatelessWidget to StatefulWidget
how can i get it to work
w Why is the official recommended using the Provider instead of Redux?
w Why is the official recommended using the Provider instead of Redux?
Hi All,
Please I need help in deploying a GitHub Plugin in my new flutter project..
I tested the plugin and example working fine..
but when deploying I face error
my question : how to deploy a GitHub plugin to a new flutter project?
thanks for your help
where is the most active group for flutter development ?
what is yield ?
Stream works better with stateful widget @axilaris
@matrixbot i also find provider so kuch better
Hi guys
Dont use adobe xd plugin to design whole page use it design tiny chunks of page like text widget and all , As of now this plugin in not usable thats what i think it uses transform for no purpose at all
Hi. How do i get the assets directory path or the project root directory path?
Anybody build failed with Android gradle plugin 4.0.0?
طيب مفتاح
hello flutterers
i am a blind user fluttering using my screen reader, but i'm having an issue with some syntax, could i get a help?
i'll pb my code
haha nevermind, i think i was missing ) :P
طيب مفتاح
@jramos29 why do you need to reference your asset directory?
i think you can reference your assets in your pubspect then use the relative path to get access to them, like in assets/images folder
@tayeb_500_twitter I’d wanted to read the files inside the directory. But don’t need anymore. By the way, is there anyway to get the reference of the root project directory? I tried to use path_provider but it seems to give access only to the Documents folder and Temp folder. Or i’m missing something?
i want to conect my device (adb devices) like emulator in vscode, but when i starting debug the vscode show this to me : Your launch config references a program that does not exist. If you have problems launching, check the "program" field in your ".vscode/launch.json" file.
what i should to do?
can we automate, simple apk app in flutter_driver??? Please help me regarding this...