Open polvallverdu opened 1 month ago
Hi @polvallverdu , thanks for the report :) Looks like this issue is somewhat similar to #413
Can you share if flutter run
, not flutter run --debug
, has the same behavior?
Hi @polvallverdu , thanks for the report :) Looks like this issue is somewhat similar to #413
Can you share if
flutter run
, notflutter run --debug
, has the same behavior?
I've seen that issue, and running build with the platform argument just works, it won't try to build for x86. Running with --debug does the same.
Hey @temeddix , I found out that it's hardcoded functionality when debugging
https://github.com/cunarist/rinf/blob/main/flutter_package/cargokit/gradle/plugin.gradle#L136
I've forked the project, went to 6.15.0
tag, and commented that line, and it's working fine for me. That disables x86 building tho (atleast for debugging), but it's fine for me. I don't know what would be a good solution for everyone. Iirc x86 android devices are less than 1%
I will try to make a PR at Cargokit repo when I have time, but I cannot guarantee when it will be. Any help reaching out to Cargokit would be greatly appreciated in the meantime.
As soon as Cargokit receives the fixed code, I will apply that to the main branch and publish a new Rinf version :)
FYI, Rinf is using Cargokit under the hood. /flutter_package/cargokit
is a Git subtree directory pulled from Cargokit.
Ahh, didn't notice. I'll be opening an issue on cargokit then. Thanks
Report
Rinf is building for
i686-linux-android
when runningflutter run
when ignoring in on gradle, and emulator being x86_64.Steps to Reproduce
Create a new project, use a crate that targets x86_64 (like lancedb), and let the build fail. Running it with
flutter build --platform-target android-x64
doesn't building fori686-linux-android
System Information