-
Notifications
You must be signed in to change notification settings - Fork 120
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
Failing to build a simple APK #213
Comments
Looks like this has something to do with inlining in Dart's AOT precompiler for ARM. At first, I thought it might be related to one of the I'd say closing the issue in Flutter repo was a little premature - this looks like an issue in the compiler (I suspect some new optimizations for null-safe code being triggered) and even if we must do a change in objectbox-dart to circumvent the issue for already released Flutter SDK versions, we'd first need to know what that is. Without the knowledge of the internals of Dart AOT compiler, this is pretty hard to figure out so I'd suggest you reopen the issue in Flutter's GitHub. Feel free to refer to this response. |
I've been able to pinpoint an issue (flutter/flutter#79441), but it doesn't seem to be the only one. Still looking for others. |
Fixed by 0.13.1-dev.0 - should become 0.13.1 tomorrow but you can already try the pre-release version |
You figure out how to fix it? Or was a workaround? |
Flutter/Dart SDK devs must fix their compiler. I've just found the problematic code and changed it to an alternative that the compiler didn't have trouble with. |
BTW 0.14.0 is out with the change |
I have an open project in my git that I upgrade the version to 2.0.3, now the project is unable to build an apk.
I don't know what to do, the error message is not clear to me...
The project works when you running, the error appear just when you try to build an APK
Error with verbose: https://pastebin.ubuntu.com/p/Y9Q9gmJ8qd/
I discovered if you remove object box from project, the build works again, you will have to comment all the things (not so much) that use the object box.
I really don't know what to do, I'm only using object box now (before was hive), I really like the way the object box deals with things I hope you can help me to fix that.
How can you reproduce the error:
1- Clone my repo: https://github.com/Katekko/ekko_app
2- Copy and paste the config.example.dart and change the name to config.dart
3- Try to build an apk: flutter build apk --release
I really don't know what to do, please help me :(
I've opened the same issue on flutter repo, but I found out the problem was object box:
The issue: flutter/flutter#79093
The text was updated successfully, but these errors were encountered: