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

Not working on android with RN 0.71 #27

Closed
teeserted opened this issue Jan 21, 2023 · 4 comments
Closed

Not working on android with RN 0.71 #27

teeserted opened this issue Jan 21, 2023 · 4 comments

Comments

@teeserted
Copy link

node_modules/react-native/android folder is empty and thus the following in build.gradle fails:

`
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+'
def rnMatcher = reactNativeVersion < 69
? "//.aar"
: "/react-native//
${buildType()}.aar"

def rnAAR = fileTree(reactNativePath).matching({ it.include rnMatcher }).singleFile
extractJNI(files(rnAAR))
}`

Since there will be no .aar files.

@bisak
Copy link

bisak commented Feb 3, 2023

I'm facing the same issue with React-Native 71 :/

@BlueIcedPen
Copy link

I can confirm, facing the same issue here. RN 0.71.2. When I install the package and build there are build issues, as soon as I remove the package and run the app, it's perfect.

@joshke
Copy link

joshke commented Feb 13, 2023

I tried to find a solution, but my expertise is not that great with native plugins. Looks like react-native removed the aar files in the android folder. I found some other libraries with the same issue but couldn't get any patches to work...

For example:
https://github.com/zzz08900/vision-camera-071-fix/blob/main/react-native-vision-camera%2B2.15.2.patch

Another quick and dirty approach might be to download the files manually and place them in the folder, but I couldn't find the aar files needed from the maven repository:

https://mvnrepository.com/artifact/com.facebook.react/hermes-android

@JoniVR
Copy link
Contributor

JoniVR commented Feb 23, 2023

See #26 and #28

If you want to use the fixed version you can either modify your package.json to use:

"react-native-clusterer": "https://github.com/focux/react-native-clusterer#support-rn-0.71",

or use patch-package and patch the dependency yourself.

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

No branches or pull requests

6 participants