AgoraIO-Community / AgoraIO-Community/Agora-Flutter-Quickstart

Flutter initialization failed.

Open
#245 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
507
Forks
186
Avg merge
7d 13h
Merged PRs (30d)
1

Description

I use agora rtc engin 4.2.0 and it show me the error when i open my app after putting dependency 'agora_rtc_engine: ^4.0.7' and my app is crashing in debug mode and show the error

√ Built build\app\outputs\flutter-apk\app-debug.apk.
E/FlutterLoader(17183): Flutter initialization failed.
E/FlutterLoader(17183): java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.video_call_test-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.video_call_test-1/lib/arm, /data/app/com.example.video_c

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.19042.1466], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Android Studio (version 4.2)
[√] VS Code (version 1.63.2)
[√] Connected device (3 available)

• No issues found!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with Flutter 2.8.1 and the reported agora_rtc_engine dependency on Android, then inspect the full UnsatisfiedLinkError and Flutter initialization output. Compare the reported SDK and dependency versions with the Android quickstart setup; done means the debug APK launches successfully and the compatible setup or remaining failure is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.