flutter_p2p
flutter_p2p copied to clipboard
Version problem with the plugin
I tried to integrate the plugin for a personal project, but at first I had a version problem. So I tried to update the flutter project and then it does the build. But when I launch it I get no action in return, it detects the wifi and then nothing. Please help me
Please write the output of flutter --version. Are you testing with a real device or an Android Emulator? Which Android version are you using? Please give also a minimal code example to reproduce the problem.
here's the return of flutter --version
~/Bureau/flutterp2p$ flutter --version Flutter 1.12.13+hotfix.8 • channel stable • https://github.com/flutter/flutter.git Framework • revision 0b8abb4724 (il y a 3 semaines) • 2020-02-11 11:44:36 -0800 Engine • revision e1e6ced81d Tools • Dart 2.7.0
And this is what I get when I run the build.
FAILURE: Build failed with an exception.
-
What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. The following dependencies do not satisfy the required version: project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 30s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)
And when I put in the requested version, it doesn't play either.
Sorry for the delay. I'll take a look on that this week
All right. Thanks for looking into it.
What happen with this bug? I wanted to give it a try but got this same error.
I was searching for fix and maybe you can try this: https://stackoverflow.com/a/54858719/3579284
p.s. Can this be tested on two different emulators?
I'm sorry but I'm busy AF at the moment. If anyone will try to fix this, PRs are welcome.
@SteffNite I didn't try it on emulators so I can not say if it would work
This error is fixed on PR
There is no version solving error but another problem with the MissingPluginException as per below . Unhandled Exception: MissingPluginException(No implementation found for method isLocationPermissionGranted on channel de.mintware.flutter_p2p/flutter_p2p)
Hey! I am getting this error and can't find my way around it. I did go through StackOverflow but the fixes didn't work for me.
FAILURE: Build failed with an exception.
-
What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. The following dependencies do not satisfy the required version: project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 12s Exception: Gradle task assembleDebug failed with exit code 1
If anyone is still looking for a workaround (not a fix):
Downgrade the com.android.tools.build:gradle: to <flutter_p2p plugin's gradle version>
In my case it was: com.android.tools.build:gradle:3.2.1
This can be found in android/build.gradle file
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
// classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}