-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Steps to Reproduce
-
Create new flutter project
-
Create new Android app
-
Add flutter project into existing android app (from step 2) according to
-
run the android app and start the MainActivity of flutter project -> everything works
-
run gradle -> assemble for the flutter project Build directory
-
copy the flutterpart-release.aar generated at build/outputs/arr
-
Create a different new Android app
-
Create new module ->Import JAR/ARR package -> select flutterpart-release.aar -> finish
-
add to app build.grade "implementation project(':flutterpart')"
-
add button to start flutterpart MainAcitivty
ComponentName componentName = new ComponentName(getBaseContext(),
"com.example.flutterpart.MainActivity");
Intent intent = new Intent().setComponent(componentName);
startActivity(intent); -
Run the app -> click the button -> app crashed
Logs
Crash log
05-30 16:32:36.124 21199-21199/com.example.androidwithflutter3 A/flutter: [FATAL:flutter/fml/icu_util.cc(95)] Check failed: context->IsValid(). Must be able to initialize the ICU context. Tried: /data/user/0/com.example.androidwithflutter3/app_flutter/icudtl.dat
05-30 16:32:36.124 21199-21199/com.example.androidwithflutter3 A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 21199 (oidwithflutter3)
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.4.4, on Microsoft Windows [Version 10.0.16299.125], locale he-IL)
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
[√] Android Studio (version 3.1)
[!] IntelliJ IDEA Community Edition (version 2018.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] Connected devices (1 available)