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

Build failed - android #14

Closed
M-HARIS-97 opened this issue Nov 22, 2022 · 25 comments
Closed

Build failed - android #14

M-HARIS-97 opened this issue Nov 22, 2022 · 25 comments

Comments

@M-HARIS-97
Copy link

M-HARIS-97 commented Nov 22, 2022

  • What went wrong:
    Could not determine the dependencies of task ':react-native-readium:compileReleaseAidl'.

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

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

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
Copy link
Contributor

@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
Copy link
Author

@jspizziri Pls check the following;

  • What went wrong:
    Could not determine the dependencies of task ':react-native-readium:compileReleaseAidl'.

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

@jspizziri
Copy link
Contributor

@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
Copy link
Author

M-HARIS-97 commented Nov 22, 2022

@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
Copy link
Author

M-HARIS-97 commented Nov 22, 2022

@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;

  • What went wrong:
    Could not determine the dependencies of task ':app:mergeReleaseAssets'.

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

@jspizziri
Copy link
Contributor

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

@M-HARIS-97
Copy link
Author

@jspizziri Example project means?

@jspizziri
Copy link
Contributor

@M-HARIS-97
Copy link
Author

M-HARIS-97 commented Nov 22, 2022

@jspizziri Same issue

Pls check this NanoHttpd/nanohttpd#634

@M-HARIS-97
Copy link
Author

@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
Copy link
Contributor

@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 jspizziri reopened this Nov 22, 2022
@M-HARIS-97
Copy link
Author

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

@jspizziri
Copy link
Contributor

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 [email protected] which should properly fix this.

jspizziri added a commit that referenced this issue Dec 1, 2022
…tpd dependency

a dependency of the kotlin-toolkit was removed from maven which caused new builds to break. this
resolves that issue

#14
@jspizziri
Copy link
Contributor

@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 #14 (comment)

@M-HARIS-97
Copy link
Author

@jspizziri OK, Thanks for your response.

@M-HARIS-97
Copy link
Author

M-HARIS-97 commented Dec 22, 2022

@jspizziri The problem is encountered again.

Screenshot 2022-12-22 at 6 14 44 PM

@jspizziri
Copy link
Contributor

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

@jspizziri
Copy link
Contributor

@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
Copy link
Author

@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
Copy link
Contributor

@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
Copy link
Author

M-HARIS-97 commented Dec 22, 2022

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

@priyanshu2000
Copy link

@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
Copy link

mickael-menu commented Dec 22, 2022

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

@M-HARIS-97
Copy link
Author

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

@M-HARIS-97
Copy link
Author

@jspizziri @mickael-menu Its back

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

4 participants