Skip to content
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

Causes build errors with Expo's EAS Build #40

Open
danscan opened this issue Apr 12, 2022 · 4 comments
Open

Causes build errors with Expo's EAS Build #40

danscan opened this issue Apr 12, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@danscan
Copy link

danscan commented Apr 12, 2022

Kudos on this awesome library. I'm so excited to see and support the work from Margelo – you all make an incredible team.


I just encountered a strange issue I thought I'd make you aware of:

react-native-bignumber is causing the following Android build error in EAS build:

No signature of method: build_3f07tkrdhml72rs2c7ujzo3ms.android() is applicable for argument types: (build_3f07tkrdhml72rs2c7ujzo3ms$_run_closure2) values: [build_3f07tkrdhml72rs2c7ujzo3ms$_run_closure2@55bc1bb5]

Reproduced with versions 0.1.5 and 0.1.3.

Relevant expanded build logs:

> Configure project :expo
Using expo modules
...
> Configure project :react-native-bignumber
BigNumber: node_modules/ found at: /home/expo/workingdir/build/node_modules
[stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/node_modules/react-native-bignumber/android/build.gradle' line: 88
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':react-native-bignumber'.
[stderr] > No signature of method: build_3f07tkrdhml72rs2c7ujzo3ms.android() is applicable for argument types: (build_3f07tkrdhml72rs2c7ujzo3ms$_run_closure2) values: [build_3f07tkrdhml72rs2c7ujzo3ms$_run_closure2@55bc1bb5]
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 1m 9s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
@mrousavy
Copy link
Member

Hey!

I'm so excited to see and support the work from Margelo – you all make an incredible team

Thanks man, we're really excited about this too. Way more to come soon!

react-native-bignumber is causing the following Android build error in EAS build

Hmm, that's weird and it looks like a generated method name.

  1. Does it build fine locally?
  2. Do you have some way to completely clean/nuke gradle/android build cache? It looks like a cache issue to me

@Szymon20000
Copy link
Member

Looks like problem with gradle/android.build.tools version.

@Szymon20000
Copy link
Member

I think we need at least 4.2 classpath 'com.android.tools.build:gradle:4.2.0'

@danscan danscan changed the title Causes Android build errors with Expo's EAS Build Causes build errors with Expo's EAS Build May 24, 2022
@danscan
Copy link
Author

danscan commented May 24, 2022

Encountering a build issue with iOS builds in EAS now as well, using react-native-bignumber@0.1.7:

Relevant fastlane output:

› Compiling App » AppDelegate.mm
› Linking   App » App
❌  Undefined symbols for architecture arm64
┌─ Symbol: _BN_bn2hex
└─ Referenced from: margelo::MGBigNumHelper::bn2Str(bignum_st*, int, int) in libreact-native-bignumber.a(MGBigNumHelper.o)

❌  ld: symbol(s) not found for architecture arm64


❌  clang: error: linker command failed with exit code 1 (use -v to see invocation)

▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ 	Ld /Users/expo/Library/Developer/Xcode/DerivedData/App-eeirpdkkxugpnadagjxlytxgexov/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/App normal (in target 'App' from project 'App')
▸ (1 failure)

@Montchy Montchy added the bug Something isn't working label Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants