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

Error build with gradle 7.0.2 #4824

Closed
ngtien137 opened this issue Nov 7, 2021 · 10 comments
Closed

Error build with gradle 7.0.2 #4824

ngtien137 opened this issue Nov 7, 2021 · 10 comments

Comments

@ngtien137
Copy link

Please provide:

  • Link to build log from https://jitpack.io

  • Does the project build on your machine with the same commands (e.g. ./gradlew install) ?

  • What error are you seeing?

Thank you!

@cyb3rko
Copy link

cyb3rko commented Nov 7, 2021

Please close this issue as there is no additional information given or add additional information.

@orlandev
Copy link

orlandev commented Nov 8, 2021

Wrong build
I tried to upload two test modules and in both cases I got the same error.

This is the last
https://jitpack.io/com/github/orlando-dev-code/random-text/0.0.2-alpha/build.log

`* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']

Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing org.gradle.java.home in gradle.properties.`

I changed the version from Java 1.8 to Java 11 and it kept giving the same error.

@cyb3rko
Copy link

cyb3rko commented Nov 8, 2021

Take a look at #4777.

Vipinbalakrishnan explains that you have to add a jitpack.yml file in the root directory and implement maven publish settings as well.
Worked for me.

@orlandev
Copy link

orlandev commented Nov 8, 2021

Yes @cyb3rko work for me too

orlandev added a commit to orlandev/blurhash that referenced this issue Nov 9, 2021
@AndroidDeveloperLB
Copy link

@cyb3rko Why is it needed now? Why can't it automatically choose what it should use, as was done so far, without extra files?
Jitpack used to be so easy, and now it requires extra files...

@cyb3rko
Copy link

cyb3rko commented Nov 10, 2021

@AndroidDeveloperLB I have no idea, I just searched for solutions and it worked lol :D

@AndroidDeveloperLB
Copy link

@cyb3rko OK I thought you are one of its developers or something

@asywalulfikri
Copy link

can you show me the steps @cyb3rko

@javlock
Copy link

javlock commented Dec 19, 2021

1.you need to create a config for jitpack in the root of the repository,
2. look at my config, just wrote for openjdk17 (added amazon corretto opendjk installation)
3. Support me introducing the feature in this issue

@AndroidDeveloperLB
Copy link

@javlock For some reason, one project I have has issues (some/all classes can't be found when using it via Jitpack), and another doesn't have any issues, even though I have tried the same steps:

https://github.com/AndroidDeveloperLB/FastScrollerAndRecyclerViewFixes - bad on recent commits
https://github.com/AndroidDeveloperLB/CommonUtils - works fine

How could it be?

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