Skip to content

Conversation

@maximzhemerenko
Copy link
Contributor

When I build Android app (react native 0.68.1) using arm based MacBook Pro M1, I receive 'Unknown host CPU architecture: arm64' error. This happens because library uses default ndkVersion, but not custom ndkVersion from 'ext'. I propose include this line in the build.gradle file to use globally specified ndkVersion if exists.

p.s. The code based on react-native implementation https://github.com/facebook/react-native/blob/23b6240b256b2afb0e5efb2cef1ce27cbd0fcdf8/ReactAndroid/build.gradle#L257-L262

@fortmarek
Copy link

Hey @janicduplessis 👋

Any chance of getting this merged? I have the same issue in my library and can confirm the fix resolves the issue.

Copy link
Collaborator

@janicduplessis janicduplessis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@janicduplessis janicduplessis merged commit e4ac2ae into AppAndFlow:main Apr 26, 2022
@maximzhemerenko maximzhemerenko deleted the add-ndk-version-to-android-build-gradle branch April 26, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants