Closed M-HARIS-97 closed 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?
@jspizziri Pls check the following;
Could not resolve all task dependencies for configuration ':react-native-readium:releaseCompileClasspath'. Could not find com.github.edrlab.nanohttpd:nanohttpd:master-SNAPSHOT. Required by: project :react-native-readium Could not find com.github.edrlab.nanohttpd:nanohttpd-nanolets:master-SNAPSHOT. Required by: project :react-native-readium
@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.
@jspizziri RN version : 68.2
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 :)
@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;
Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'. Could not find com.github.edrlab.nanohttpd:nanohttpd:master-SNAPSHOT. Searched in the following locations:
- file:/Readium_Dev/node_modules/react-native/android/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- file:/Readium_Dev/node_modules/react-native/android/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-SNAPSHOT.pom
- file:/Readium_Dev/node_modules/jsc-android/dist/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- file:/Readium_Dev/node_modules/jsc-android/dist/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-SNAPSHOT.pom
- https://dl.google.com/dl/android/maven2/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-SNAPSHOT.pom
- https://www.jitpack.io/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- https://www.jitpack.io/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-nanohttpd-project-2.3.1-gc3b149e-77.pom
- https://repo.maven.apache.org/maven2/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-SNAPSHOT.pom
- https://jcenter.bintray.com/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/maven-metadata.xml
- https://jcenter.bintray.com/com/github/edrlab/nanohttpd/nanohttpd/master-SNAPSHOT/nanohttpd-master-SNAPSHOT.pom Required by: project :app > project :react-native-readium project :app > project :react-native-readium > com.github.readium.kotlin-toolkit:readium-streamer:2.1.1 Could not find com.github.edrlab.nanohttpd:nanohttpd-nanolets:master-SNAPSHOT. Searched in the following locations:
- file:/Readium_Dev/node_modules/react-native/android/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- file:/Readium_Dev/node_modules/react-native/android/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-SNAPSHOT.pom
- file:/Readium_Dev/node_modules/jsc-android/dist/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- file:/Readium_Dev/node_modules/jsc-android/dist/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-SNAPSHOT.pom
- https://dl.google.com/dl/android/maven2/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-SNAPSHOT.pom
- https://www.jitpack.io/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- https://www.jitpack.io/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-nanohttpd-project-2.3.1-gc3b149e-77.pom
- https://repo.maven.apache.org/maven2/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-SNAPSHOT.pom
- https://jcenter.bintray.com/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/maven-metadata.xml
- https://jcenter.bintray.com/com/github/edrlab/nanohttpd/nanohttpd-nanolets/master-SNAPSHOT/nanohttpd-nanolets-master-SNAPSHOT.pom Required by: project :app > project :react-native-readium project :app > project :react-native-readium > com.github.readium.kotlin-toolkit:readium-streamer:2.1.1
@M-HARIS-97 do you get the same issue when attempting to build the example project?
@jspizziri Example project means?
@jspizziri Same issue
Pls check this https://github.com/NanoHttpd/nanohttpd/issues/634
@jspizziri issue fixed. Added some code changes to android/build.gradle file. Please refer to the following image for more information
@M-HARIS-97 this looks like something that would need to be changed in this repo, correct?
If so could you open a PR?
@jspizziri I think it has to do with the new version of RN. So no need to change the repo.
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.
@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
@jspizziri OK, Thanks for your response.
@jspizziri The problem is encountered again.
@M-HARIS-97 can you try running it again? I've seen issues like this with temporary outages with jitpack.io
@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.
@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
@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.
@jspizziri I've seen some discussion around this on Git (Link), Thats why I'm asking
@jspizziri I also confirmed. I think
https://www.jitpack.io
goes down frequently. So any plan to use another server support likehttps://jitpack.io
both gets down together
The plan is to migrate the Kotlin toolkit to Maven Central next year, because JitPack is becoming more and more unreliable.
@jspizziri @mickael-menu It's still down. Is there any solution to fix it?
@jspizziri @mickael-menu Its back
What went wrong: Could not determine the dependencies of task ':react-native-readium:compileReleaseAidl'.
Try:
Get more help at https://help.gradle.org
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