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
1,796 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
• 7,340 points

Related Questions In Jenkins

+1 vote
3 answers
+3 votes
7 answers

Is it possible to shift or move jobs between two jenkins servers?

Hi, You can copy Jobs in between your ...READ MORE

answered Dec 16, 2020 in Jenkins by MD
• 95,460 points
45,275 views
+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,620 points
8,326 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
1,367 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,053 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
• 7,060 points
6,871 views
+2 votes
5 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP