5-stones / react-native-readium

📚 📖 React Native ebook reader for iOS, Android, & Web via Readium
MIT License
89 stars 25 forks source link

Build failed - android #14

Closed M-HARIS-97 closed 1 year ago

M-HARIS-97 commented 1 year ago

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

jspizziri commented 1 year ago

@M-HARIS-97 it sounds like you're using a newer version of react-native that is using gradle 8? If I'm reading that error correctly, this is an issue with a newer version of gradle?

M-HARIS-97 commented 1 year ago

@jspizziri Pls check the following;

jspizziri commented 1 year ago

@M-HARIS-97 I saw that, but I've not seen that build error before. So its either a problem with how you're building it, or its a problem with the upstream dependency suddenly being broken. My guess is that it's the first option.

M-HARIS-97 commented 1 year ago

@jspizziri RN version : 68.2

Screenshot 2022-11-22 at 6 56 31 PM

This is my current version details. I am following the official document (https://github.com/5-stones/react-native-readium#installation) for installing readium and trying to take a build for android. At that time I got this error :)

M-HARIS-97 commented 1 year ago

@jspizziri It is not gradle related. As I tried with both upgrade and downgrade versions of gradle, same issue occured both times.

Pls check the following for the detailed description;

jspizziri commented 1 year ago

@M-HARIS-97 do you get the same issue when attempting to build the example project?

M-HARIS-97 commented 1 year ago

@jspizziri Example project means?

jspizziri commented 1 year ago

@M-HARIS-97 https://github.com/5-stones/react-native-readium/tree/main/example

M-HARIS-97 commented 1 year ago

@jspizziri Same issue

Pls check this https://github.com/NanoHttpd/nanohttpd/issues/634

M-HARIS-97 commented 1 year ago

@jspizziri issue fixed. Added some code changes to android/build.gradle file. Please refer to the following image for more information

Screenshot 2022-11-23 at 12 33 45 AM
jspizziri commented 1 year ago

@M-HARIS-97 this looks like something that would need to be changed in this repo, correct?

If so could you open a PR?

M-HARIS-97 commented 1 year ago

@jspizziri I think it has to do with the new version of RN. So no need to change the repo.

jspizziri commented 1 year ago

There's more information on this in the readium migration docs here https://github.com/readium/kotlin-toolkit/blob/main/docs/migration-guide.md#221

I'm going to upgrade to kotlin-toolkit@v2.2.1 which should properly fix this.

jspizziri commented 1 year ago

@M-HARIS-97 I just released a patch version v1.0.1 which properly fixes this issue. If you install that version you should also be able to remove the changes you've made to your build.gradle file that you referenced here https://github.com/5-stones/react-native-readium/issues/14#issuecomment-1324125780

M-HARIS-97 commented 1 year ago

@jspizziri OK, Thanks for your response.

M-HARIS-97 commented 1 year ago

@jspizziri The problem is encountered again.

Screenshot 2022-12-22 at 6 14 44 PM
jspizziri commented 1 year ago

@M-HARIS-97 can you try running it again? I've seen issues like this with temporary outages with jitpack.io

jspizziri commented 1 year ago

@M-HARIS-97 I just confirmed, jitpack is having an outage, there are a number of errors attempting to reach other unrelated packages. I'm sure they'll have it resolved in the next few hours.

M-HARIS-97 commented 1 year ago

@jspizziri I also confirmed. I think https://www.jitpack.io goes down frequently. So any plan to use another server support like https://jitpack.io

jspizziri commented 1 year ago

@M-HARIS-97 I don't know if that would solve the issue? I imagine www is just an alias for the non-www site, not separate servers. If they are separate I'd imagine both of them would have issues simultaneously, but if I'm wrong about that please send me some docs on it.

M-HARIS-97 commented 1 year ago

@jspizziri I've seen some discussion around this on Git (Link), Thats why I'm asking

priyanshu2000 commented 1 year ago

@jspizziri I also confirmed. I think https://www.jitpack.io goes down frequently. So any plan to use another server support like https://jitpack.io

both gets down together

mickael-menu commented 1 year ago

The plan is to migrate the Kotlin toolkit to Maven Central next year, because JitPack is becoming more and more unreliable.

M-HARIS-97 commented 1 year ago

@jspizziri @mickael-menu It's still down. Is there any solution to fix it?

M-HARIS-97 commented 1 year ago

@jspizziri @mickael-menu Its back