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
Crash App when add flutter module to existing apps #19818
Comments
Please add the output of |
What do the contents of the APK zip file look like before and after adding the fabric.io dependency? The assertion failure indicates that the Flutter engine can not find the assets representing the application's Dart code. Look for files in the APK such as Are these files still present in the right places after adding fabric.io? |
@jason-simmons |
Hi i found reason make app crash. |
I was also so. Is there a way to fix it? |
I also had the exactly same problem, can confirm that removing the apply plugin from fabric solves the problem, but is there a way to keep using fabric? Is it a problem with the fabric plugin itself? |
I had the problem too.Is there some way to solve this problem without remove fabric ? |
Here ! I fixed this. You can checkout Upgrading Flutter channel master "https://flutter.io/upgrading/" . You without remove fabric. When you upgrading after restart your project. |
Still not work . |
add this line in strings.xml |
@haihai111 thanks you. I can do it. But i don't know why?. I think Fultter add plugin faric ✌️ |
when the app crash , I find that apk's assets path missing "flutter_shared" . |
@mravn did you happen to root cause the Gradle issue here? |
@matthew-carroll Sorry, no. |
I do not have apply plugin: 'io.fabric' in my gradle but still get this error |
hi, all, In my situation, I pulled my flutter module from git repository. |
you can just run |
@kimlet is right. The main reason for
The reason of why flutter doesn't pack |
@hnvn exactly the same problem here, I have tried your steps, still gone crash, so sad~ |
Thank you! It does work for me! |
@hnvn I have have question though: |
I find the reason: so, add the app's Flavor to the Flutter lib module, make the lib has the same compileDevDebug. |
|
@yk3372 thank you so much for this piece of advice. It helped me fix the error and run my Flutter module successfully. For other users experiencing this problem, you have to add the flavors you have in your app to the Flutter plugin's build.grade. It is not necessary to add flavors to the generated Example:
|
I can confirm that adding empty build types and flavours fixes problem with integrating flutter module into existing application ❤️ |
it helps me thanks a lot |
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 |
Hi everyone,i have a big problem i can't figure out.I have crash when i add flutter module to existing apps.I do follow this link https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps .It's working but when i add fabric.io to build.gradle of android project i have crash.
Steps to Reproduce
07-26 22:07:19.384 16435-16435/com.app.myapplication E/flutter: [ERROR:flutter/runtime/dart_vm.cc(256)] VM snapshot must be valid.
07-26 22:07:19.384 16435-16435/com.app.myapplication A/flutter: [FATAL:flutter/shell/common/shell.cc(216)] Check failed: vm. Must be able to initialize the VM.
Logs
The text was updated successfully, but these errors were encountered: