centrifugal / centrifuge-dart

Dart (Flutter) client SDK for bidirectional communication with Centrifugo and Centrifuge-based server over WebSocket

Home Page:https://pub.dartlang.org/packages/centrifuge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can do android build. Ios is fine

opened this issue · comments

I have tried dev, beta and master channel and none worked.

I think it might be the way my AVD is configured for android.
Need the right SDK ?
Anyone got an idea ?


x-MacBook-Pro: apple$ flutter doctor 
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.3.8, on Mac OS X 10.14.4 18E226, locale en-DE)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.io/setup/#android-setup for detailed instructions.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.33.0)
[✓] Connected device (2 available)

x-MacBook-Pro: apple$ flutter build apk
Initializing gradle...                                              3.2s
Resolving dependencies...                                               
* Error running Gradle:
ProcessException: Process "/Users/apple/workspace/go/src/github.com/centrifugal/centrifuge-dart/example/flutter_app/android/gradlew" exited abnormally:

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/apple/workspace/go/src/github.com/centrifugal/centrifuge-dart/example/flutter_app/android/build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
  Command: /Users/apple/workspace/go/src/github.com/centrifugal/centrifuge-dart/example/flutter_app/android/gradlew app:properties


Please review your Gradle project setup in the android/ folder.

i tried a flutter clean - no luck...

I suppose you can find solution here google/filament#15

Did you try hints?

Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.io/setup/#android-setup for detailed instructions.

Hey @mogol
its up to date.

I think that the android folder is bad and needs to be nuked. Sometimes this happens.
Create a new flutter project with "flutter create" and drop the dart code inside.
worked here when i tried it just now.

also maybe worth saying what channel we are tracking in the readme as it might help.

Please check example in master branch, should be fixed.

hey @mogol that fixed it. Tested on Nexus 5x & IOS sim 12.2

I would have wimped out on gradle and just dont a flutter create and dropped the old dart code inside it - Gradle is not me friend :)

thanks for the fix.