I tried using your code from pub.dev to test the example app.
Just pasted the main. dart code but there seems an error while building the apk .
Here is the error
FAILURE: Build failed with an exception.
[ +3 ms] What went wrong:
[ +1 ms] The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
[ +1 ms] The following dependencies do not satisfy the required version:
[ +1 ms] project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71
[ +2 ms] Try:
[ +2 ms] 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.
[ +1 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 2s
[ +347 ms] Running Gradle task 'assembleDebug'... (completed in 3.5s)
[+4011 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +1 ms] "flutter run" took 10,713ms.
I tried using your code from pub.dev to test the example app. Just pasted the main. dart code but there seems an error while building the apk . Here is the error
FAILURE: Build failed with an exception. [ +3 ms] What went wrong: [ +1 ms] The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher. [ +1 ms] The following dependencies do not satisfy the required version: [ +1 ms] project ':flutter_p2p' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 [ +2 ms] Try: [ +2 ms] 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. [ +1 ms] * Get more help at https://help.gradle.org [ +1 ms] BUILD FAILED in 2s [ +347 ms] Running Gradle task 'assembleDebug'... (completed in 3.5s) [+4011 ms] Exception: Gradle task assembleDebug failed with exit code 1 [ +1 ms] "flutter run" took 10,713ms.
0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3) 1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:569:7)