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

Does not work alongside RN 0.67.x #111

Open
birdofpreyru opened this issue Jan 22, 2022 · 8 comments
Open

Does not work alongside RN 0.67.x #111

birdofpreyru opened this issue Jan 22, 2022 · 8 comments

Comments

@birdofpreyru
Copy link

No description provided.

@stockhuman
Copy link

What issue are you encountering? We have had it running on iOS in every React-Native release since 0.64

@birdofpreyru
Copy link
Author

There was something about its gradle config, which crashed gradle build of my host project after the update to 0.67 from 0.66. Though, I am noob regarding Gradle, so it might be I was doing something wrong. I ended up just forking the lib, doing a bunch of changes in its Gradle file, most of whice aren't related, then it worked for me, so I am using my fork, and already forgot what was the issue, and what exactly fixed it for me.

@iqbalexperience
Copy link

The issue is related to maven plugin ( also with compileSdkVersion ) due to Gradle version.

React Native 0.66 uses gradle version 7, So works perfect.

React Native 0.67 and onwards uses version 8. In gradle v8, maven is removed and maven-publish should be used ( according to https://stackoverflow.com/questions/69100888/plugin-with-id-maven-not-found ).
Issues:-

  1. [Plugin with id 'maven' not found] ( gradlew commands ( clean, assembleDebug )
  2. [compileSdkVersion is not specified. Please add it to build.gradle] ( npx react-native run-android )

Solution:-
The error is about gradle config that makes it incompatible with gradle version 8. Need to update build.gradle file in lib android folder to make it compatible with gradle v8

@lunarraid
Copy link

I needed to modify my branch to make the same changes I found here before I could get this to work:

LucasMonteiro1/react-native-flic2@3245754

@birdofpreyru
Copy link
Author

Ugh... I never mentioned, I have my fork published to NPM: @dr.pogodin/react-native-static-server, just in case anybody bumps into the same problem, can just use it.

@jimzou
Copy link

jimzou commented May 29, 2022

Ugh... I never mentioned, I have my fork published to NPM: @dr.pogodin/react-native-static-server, just in case anybody bumps into the same problem, can just use it.

Thanks your work,I can't get new version by npm.
npm info react-native-static-server

react-native-static-server@0.5.0 | MIT | deps: none | versions: 19
HTTP static file server for React Native
https://github.com/futurepress/react-native-static-server

keywords: react-native

dist
.tarball: https://registry.npmjs.org/react-native-static-server/-/react-native-static-server-0.5.0.tgz
.shasum: 4b396082bfe7dfdbba6fe7d7de894de5ba4ebadb
.integrity: sha512-RGteckPoBZq48p9Y8V67bjZGPxLHKkEOAffLSUJiGC7hkx+H+zuekqCR+04F30NuWB7y+nb8N7Qld2RGjX5DNg==
.unpackedSize: 67.9 kB

maintainers:
- fchasen <fchasen@gmail.com>

dist-tags:
latest: 0.5.0

published over a year ago by fchasen <fchasen@gmail.com>

@birdofpreyru
Copy link
Author

@jimzou npm info @dr.pogodin/react-native-static-server
image

@jimzou
Copy link

jimzou commented May 30, 2022

@birdofpreyru Thanks,I asked a low-level question!

smellman pushed a commit to smellman/react-native-static-server that referenced this issue Sep 25, 2024
smellman pushed a commit to smellman/react-native-static-server that referenced this issue Sep 25, 2024
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

5 participants