-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Getting error while creating a release APK #44
Comments
i have tried reinstalling rust and installed cmake as well, but still facing the same error. |
Does it work in debug mode? |
yes, that's the weird thing |
Can you build a debug apk? |
oh ok, checking with debug build |
nope, debug APK is also not getting built |
It seems that the following error line is important:
After using Google, I've found the following: So maybe run this: ulimit -n 65536 |
i did this as well |
SEVERE: Compiling rhttp v0.1.0 (/Users/rajatkr/.pub-cache/hosted/pub.dev/rhttp-0.9.6/rust) I suspect this is the problem |
It is the version of the Rust part https://github.com/Tienisto/rhttp/blob/main/rhttp/rust/Cargo.toml I can only say that |
i'll try clean in that case |
didn't work |
UPDATE: I suspected from the logs that the NDK version might be a problem, so I checked if it can be updated. On updating it from NDK v21 to v28. The APK build happened smoothy for release. Interesting it didn't throw while running app but when building APK. Thanks for putting up with me @Tienisto |
version: 0.9.6
command run: flutter build apk --release
Error Faced :-
FAILURE: Build failed with an exception.
Where:
Script '/Users/rajatkr/.pub-cache/hosted/pub.dev/rhttp-0.9.6/cargokit/gradle/plugin.gradle' line: 68
What went wrong:
Execution failed for task ':rhttp:cargokitCargoBuildRhttpRelease'.
BUILD FAILED in 39s
*********************************************************
WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************
Running Gradle task 'assembleRelease'... 40.0s
Gradle task assembleRelease failed with exit code 1
The text was updated successfully, but these errors were encountered: