2017-11-17 2 views
1

젠킨스의 시스템 구성에서 adt-bundle-windows-x86_64-20130219을 다운로드하고 $ANDROID_HOME/sdk을 Android SDK 루트에 적용했습니다.젠킨스 : 다음 SDK 구성 요소의 사용권 계약을 수락하지 않았습니다.

내 오류 : 나는 $ANDROID_HOME/tools/bin에서 ./sdkmanager --licenses 을 실행하는 데 필요한 자습서를 많이 보았다

* What went wrong: 
A problem occurred configuring project ':app'. 
> You have not accepted the license agreements of the following SDK 
components: 
[Android SDK Build-Tools 25.0.2, Android SDK Platform 25]. 
Before building your project, you need to accept the license agreements and 
complete the installation of the missing components using the Android 
Studio SDK Manager. 
Alternatively, to learn how to transfer the license agreements from one 
workstation to another, go to http://d.android.com/r/studio-ui/export- 
licenses.html 

. 하지만 진짜 문제는 내 adt 번들에 BIN이 없다는 것입니다. 여기 내 디렉토리 : C:\Users\user\Desktop\Gradle\adt-bundle-windows-x86_64-20130219\sdk\tools입니다. bin 폴더가 없으며 갖고 있지 않습니다. 잘못된 SDK 도구를 다운로드 했습니까? 불행하게도 bin 폴더가 도구에 없기 때문에 SDK 관리자를 실행합니다. 젠킨스 작업에서

추가 정보 : 난 그냥 Gradle을 스크립트를 호출하여 작업을 추가 : packageDebug이 해결

답변

0

.

단계 : 안드로이드 스튜디오 웹 사이트에

  1. 다운로드 SDK 도구
  2. 폴더는 다음 디렉토리에 cmd를 도구/bin 디렉토리
  3. 이동에 해당 폴더에
  4. 이동 SDK를 추출 만들기 ./sdkmanager.bat --licenses를 입력하십시오.
  5. licenese를 묻는 메시지가 나타날 때마다 y를 누르십시오.
관련 문제