Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Android Build #551

Closed
LaBolaCuba opened this issue Oct 4, 2024 · 3 comments · Fixed by #554
Closed

Error on Android Build #551

LaBolaCuba opened this issue Oct 4, 2024 · 3 comments · Fixed by #554
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@LaBolaCuba
Copy link

LaBolaCuba commented Oct 4, 2024

Hi, i'm using ably with Flutter, on iOS is working fine but when i build for android this happend:

E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #1      Platform.invokePlatformMethod (package:ably_flutter/src/platform/src/platform.dart:52:14)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #2      Realtime.createPlatformInstance (package:ably_flutter/src/platform/src/realtime/realtime.dart:35:9)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #3      PlatformObject._acquireHandle.<anonymous closure> (package:ably_flutter/src/platform/src/platform_object.dart:39:37)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #4      PlatformObject._acquireHandle.<anonymous closure> (package:ably_flutter/src/platform/src/platform_object.dart:39:37)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): 
E/flutter (21393): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method createRealtime on channel io.ably.flutter.plugin)
E/flutter (21393): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #1      Platform.invokePlatformMethod (package:ably_flutter/src/platform/src/platform.dart:52:14)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #2      Realtime.createPlatformInstance (package:ably_flutter/src/platform/src/realtime/realtime.dart:35:9)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #3      PlatformObject._acquireHandle.<anonymous closure> (package:ably_flutter/src/platform/src/platform_object.dart:39:37)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): #4      PlatformObject._acquireHandle.<anonymous closure> (package:ably_flutter/src/platform/src/platform_object.dart:39:37)
E/flutter (21393): <asynchronous suspension>
E/flutter (21393): 

How i can solve this?, i'm going creazy with this. Ably on android don't work at all.

Env:

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (3 weeks ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3

Running flutter doctor...
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 13.2.1 22D68 darwin-x64, locale es-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    ! Flutter recommends a minimum Xcode version of 15.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.94.0)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.

Steps to reproduce:

  1. Create a fresh Flutter project
  2. Install ably (latest version)
  3. Implement realtime (send & receive messages & presence subscriptions)
  4. Run the project

This work for iOS but not for android.

┆Issue is synchronized with this Jira Task by Unito

@ttypic
Copy link
Contributor

ttypic commented Oct 9, 2024

Hey @LaBolaCuba,

Could you please double-check that you’re trying to run the Flutter app on an Android emulator? Also, we’ve released 1.2.35, which fixes another bug with the Android build for Flutter 3.24+

@LaBolaCuba
Copy link
Author

Hey @LaBolaCuba,

Could you please double-check that you’re trying to run the Flutter app on an Android emulator? Also, we’ve released 1.2.35, which fixes another bug with the Android build for Flutter 3.24+

Hi @ttypic i only work with real devices. The error is on any android device i run. I test with 5 diferent android phones and see the error on all of them. PluginException.

@ttypic
Copy link
Contributor

ttypic commented Oct 10, 2024

Hey @LaBolaCuba,

I believe we found the root cause for the issue, the Realtime client is crashing then log level is set to LogLevel.warn, We are going to fix this ASAP

@ttypic ttypic self-assigned this Oct 10, 2024
@ttypic ttypic added the bug Something isn't working. It's clear that this does need to be fixed. label Oct 10, 2024
@coderabbitai coderabbitai bot mentioned this issue Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

Successfully merging a pull request may close this issue.

2 participants