1

I am new to Team Services and I am using it to develop an Android app and want to use the continuous integration and automatic build by Team Services Git. But every time I make a commit,

the build fails with an error: gradlew failed with return code: 1

I have configured the agent and set up everything. But can't understand what I am doing wrong here. enter image description here

I didn't understand this post and it didn't even work.

UPDATE:

I am uploading the logs after changing System.debug=true.

Pronoy999
  • 645
  • 6
  • 25
  • Have you started by understanding how gradle works and how to troubleshoot issues with it? – Daniel Mann Apr 02 '18 at 19:01
  • Yes. Somewhat. But is this a gradle issue? Since Android studio compiles the gradle but Team services cant. – Pronoy999 Apr 03 '18 at 01:02
  • Do you use Hosted 2017 build agent or private build agent? If you are using private build agent, do you install Android Support Repository 47 on build agent machine? (Check in SDK manager or run `[android sdk path]\tools\bin\sdkmanager.bat --list commmand`) – Andy Li-MSFT Apr 03 '18 at 09:56
  • Yes since I am using Android studio, I installed a private agent and yes I updated to 48. – Pronoy999 Apr 03 '18 at 13:29
  • @PronoyMukherjee Is it possible that a sdk license error? Please check if this thread helps: https://stackoverflow.com/questions/39941712/android-gradle-build-in-visual-studio-team-services-sdk-license-error?noredirect=1 – Andy Li-MSFT Apr 04 '18 at 04:12
  • I have accepted the licenses. Still no work. – Pronoy999 Apr 04 '18 at 06:05
  • @PronoyMukherjee Does it only occur on the specific project? what about other projects? You can try to create a new project to check if that still occurs. – Andy Li-MSFT Apr 10 '18 at 01:48
  • I have only one project currently. So can’t tell. Will check with others and update. – Pronoy999 Apr 10 '18 at 02:28
  • Queue the build with "system.debug" variable set to "true" and then share the logs. – Eddie Chen - MSFT Apr 12 '18 at 09:19
  • @EddieChen-MSFT I have uploaded the logs. Please check it. – Pronoy999 Apr 13 '18 at 15:55
  • Have you tried adding "android { lintOptions { abortOnError false } }" in your build.gradle as the error log indicated? – Eddie Chen - MSFT Apr 17 '18 at 01:20

0 Answers0