mintware-de / flutter_p2p

A Wi-Fi Direct Plugin for Flutter
MIT License
79 stars 42 forks source link

error launching the example app #15

Open Satendra124 opened 4 years ago

Satendra124 commented 4 years ago

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)

2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:723:18) 3 _rootRunUnary (dart:async/zone.dart:1192:38) 4 _CustomZone.runUnary (dart:async/zone.dart:1085:19) 5 _FutureListener.handleValue (dart:async/future_impl.dart:141:18) 6 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) 7 Future._propagateToListeners (dart:async/future_impl.dart:711:32) 8 Future._completeWithValue (dart:async/future_impl.dart:526:5) 9 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15) 10 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13) 11 RunCommand.usageValues (package:flutter_tools/src/commands/run.dart) 12 _rootRunUnary (dart:async/zone.dart:1192:38) 13 _CustomZone.runUnary (dart:async/zone.dart:1085:19) 14 _FutureListener.handleValue (dart:async/future_impl.dart:141:18) 15 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) 16 Future._propagateToListeners (dart:async/future_impl.dart:711:32) 17 Future._completeWithValue (dart:async/future_impl.dart:526:5) 18 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36:15) 19 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298:13) 20 AndroidDevice.isLocalEmulator (package:flutter_tools/src/android/android_device.dart) 21 _rootRunUnary (dart:async/zone.dart:1192:38) 22 _CustomZone.runUnary (dart:async/zone.dart:1085:19) 23 _FutureListener.handleValue (dart:async/future_impl.dart:141:18) 24 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45) 25 Future._propagateToListeners (dart:async/future_impl.dart:711:32) 6 Future._completeWithValue (dart:async/future_impl.dart:526:5) 27 Future._asyncComplete. (dart:async/future_impl.dart:556:7) 28 _rootRun (dart:async/zone.dart:1184:13) 9 _CustomZone.run (dart:async/zone.dart:1077:19) 30 _CustomZone.runGuarded (dart:async/zone.dart:979:7) 31 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1019:23) 32 _microtaskLoop (dart:async/schedule_microtask.dart:43:21) 33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5) 34 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13) 35 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5) Thank you
ashwinair commented 4 years ago

@devtronic Any updates related to fix this issue pls. Getting same error

devtronic commented 4 years ago

I'm working on a new release.