-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Android crash when I add flutter module to existing apps #24679
Comments
my flutter channel is master |
Your |
I have flutter doctor in upstairs |
@THtianhao This is crash from logcat:
and this is flutter doctor:
Android code:
@eseidel @dnfield @matthew-carroll |
I have managed to make this work :)
|
you can try to call FlutterMain’s startInitaization method before super.onCreat(). I remember there is a check before u creat flutterview |
My fix fixes debug version, but release keeps crashing. |
This was a proguard issue. #Flutter Wrapper |
when i clean the project, then run it on my phone for the first time , it's ok. but when i run it for the second on my phone ( don't clean the project ) , it go crash . |
@jelenalecic maybe replace { ; } to { *; } |
Tentatively closing this bug. The Android APIs referenced in the OP are now deprecated. https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps has the current instructions for add-to-app. https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects#add-to-app-migration for some guidelines for upgrading your existing add-to-app modules. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
2.crash info
and I did't use fabric.
Thank u for u help!
Logs
The text was updated successfully, but these errors were encountered: