-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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 Preview APK build failing locally #30413
Comments
I then tried like this |
No still an issue, its just random, i tried production profile with apk setting but same :( |
Similar issue here. Release builds work fine on EAS but fail when I build locally. I tried to edit
|
I ended up creating a global
setting up global gradle properties: https://www.labkey.org/Documentation/wiki-page.view?name=gradleProps#global |
Thanks @computerjazz this really helped also noticed that my build speeds are like 2x almost fast, wish iOS had this simple improvement also |
Hello and thanks for asking, Thank you 🙂 |
But i don’t think this should be a resolved issue, i feel this is something expo could implement so people don’t need todo workarounds |
Hi! It's true that we can probably increase the defaults that are included in the android project config, so I'll keep this open. Thank you 👍 |
great interaction: proper fix and clear resolution steps for the maintainers |
Damn! FINALLY something that actually worked! I tried a lot of things like setting Node ENV variables and stuff. This instantly made the difference. Thank you so much! |
Summary
When i use
EXPO_USE_DEV_SERVER=true NODE_OPTIONS=--max_old_space_size=2048 bx eas build --profile preview --local -p android
i get Build FailedIts just this particular app that i have inherited has this issue, but if do production build where it builds aab its fine.
Here i have tried with 4gb memory
What platform(s) does this occur on?
Android
SDK Version
51
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.5
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - ~/dev/node-v20.11.0/bin/node
Yarn: 1.22.22 - ~/dev/node-v20.11.0/bin/yarn
npm: 10.2.4 - ~/dev/node-v20.11.0/bin/npm
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
Android SDK:
Android NDK: 26.2.11394342
IDEs:
Xcode: 15.4/15F31d - /usr/bin/xcodebuild
npmGlobalPackages:
eas-cli: 10.1.1
Minimal reproducible example
https://github.com/MariuzM/expo-starter
I'm just linking this here to BOT allows it, but this is not the example, i can't post right now production example.
The text was updated successfully, but these errors were encountered: