-
Notifications
You must be signed in to change notification settings - Fork 188
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
FAILURE: Build failed with an exception. #4777
Comments
You need to specify the jitpack repository to use java 11. Or else it will default to 1.8. Most recent gradle plugins need Java 11. So do the following. Added jitpack.yml in the root of the project for JAVA 11 support. jdk: |
Also if you are getting artifacts not found error please checkout the below complete step to publish the library. I am able to successfully release my library to jitpack.io by the following steps. 1.Update gradle plugin version to the latest in build.gradle file dependencies { 2.Add jitpack.io repository to build.gradle file of the root as well as the library module of the project as below. repositories { 3.Add plugin maven-publish in the build.gradle file of the module as below along with library plugin. plugins { 4.Add jitpack.yml in the root of the project for JAVA 11 support. jdk:
(read as, space hyphen space opejdk11 or copy the whole text) 5.Change java version to 11 in build.gradle file of the app module and library module inside android {} as below compileOptions { 6.Added maven publication settings as below in the build.gradle of module. afterEvaluate { Note:- |
Can you please make it auto-use the JDK 11 based on what's in the gradle file? Or even make the new default? |
@Vipinbalakrishnan, @AndroidDeveloperLB thank you for your suggestion, will try them and see if it fixes the issue :) |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Please provide:
Link to build log from https://jitpack.io
https://jitpack.io/com/github/astrit-veliu/Smoolider/1.2/build.log
Does the project build on your machine with the same commands (e.g. ./gradlew install) ?
The build works fine on my machine
What error are you seeing?
FAILURE: Build failed with an exception.
Where:
Build file '/home/jitpack/build/app/build.gradle' line: 2
What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
The text was updated successfully, but these errors were encountered: