Why is it displaying Jenkins build failure for Android app

0 votes

I am trying to set up Jenkins to work with my Android app. I get the source code and try to build it.

The build failed with the following message :

10:43:35.419 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.419 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred configuring project ':mobile'.
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to notify project evaluation listener.
10:43:35.420 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
10:43:35.421 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':mobile'.

A problem occurred configuring project ':mobile'.
> Failed to notify project evaluation listener.

Can anyone suggest me a solution ? I am unable to find anything useful online.Thanks
Apr 12, 2018 in Jenkins by Atul
• 10,240 points
486 views

1 answer to this question.

0 votes

I think you should try this.

Try Uninstalling Java SDK Version 9 and install Java SDK Version 8 as it worked for me.

I have also uninstalled the SDK on OS X using the instructions below:

http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html

I hope it would resolve your query.

answered Apr 12, 2018 by shubham
• 6,910 points

Related Questions In Jenkins

+1 vote
3 answers
+2 votes
6 answers
+1 vote
1 answer

Unable to access Jenkins. I newly installed Jenkins but for some reason I cannot access it.

Try changing the port, Change JENKINS_AJP_PORT="xyz" to JENKINS_AJP_PORT="abc" If changing the ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 10,100 points
1,534 views
0 votes
2 answers

Jenkins - identify if build is tagged

Set refspec to: +refs/tags/*:refs/remotes/origin/tags/* branch specifier: ** Under build triggers check ...READ MORE

answered Oct 25, 2018 in Jenkins by kailash
125 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
721 views
+2 votes
1 answer
0 votes
2 answers

Is possible for Jenkins to auto start and stop slave nodes?

Try Jenkins Plugin called as Slave SetupPlugin. This ...READ MORE

answered Aug 6, 2018 in Jenkins by Nilesh
• 6,980 points
2,574 views
+2 votes
5 answers