Open seddonm1 opened 6 years ago
had similar issue, cloned repo, cd into /example
and run flutter run
results in:
Nurbot:example Nurbot$ flutter run
Running "flutter packages get" in example... 10.5s
Launching lib/main.dart on Pixel in debug mode...
Initializing gradle... |
Oops; flutter has exited unexpectedly: "Exit code 1 from: /Users/Nurbot/flutter_mapbox/example/android/gradlew -v:
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain".
Adding a gradle-wrapper.jar resolved this issue for me
Hi, Just tested with your latest change.
Had to follow these instructions: https://github.com/flutter/flutter/wiki/Updating-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1#upgrading-a-flutter-plugin-project
so:
android/gradle/wrapper/gradle-wrapper.properties
file.distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Good work. it behaves well 👍