2017-01-03 4 views
0

나는 이온 프로젝트는 맥에서 실행하고 내가 명령 ionic run android을 실행할 때 나는이이온 실행 오류 : 안드로이드 SDK 누락 된 라이센스 계약

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 24, Android SDK Build-Tools 25.0.1]. 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.

나는 다음과 같은 명령을 실행했다

를 얻을 수 있지만,이 해결되지했다가 문제

  • android update sdk --no-ui --all --filter build-tools-23.0.1,android-23,extra-android-m2repository

  • android update sdk --no-ui --all --filter build-tools-24.0.1,android-24,extra-android-m2repository

  • android update sdk -a --filter platform-tools,build-tools-21.0.1,android-21,extra-android-m2repository --no-ui --force

나는 누락 어떤 플랫폼 도구를 알고 어떤 아이디어를하지는?

답변

0

android-sdk-license 파일을 생성하고 %ANDROID_HOME%--->licenses 폴더에 저장해야합니다. 운영 체제에 따라 https://stackoverflow.com/a/40383457/6554634과 같이하십시오.

1 단계는 : android-sdk-license 그것을 열 만들고이 8933bad161af4178b1185d1a37fbf41ea5269c55

2 단계 복사 : 읽고 터미널을 통해 접수 할 수있다 %ANDROID_HOME%--->licenses 폴더

+0

이미 그 파일을 가지고이 같은 문자열이 있지만 오류가 동일합니다. – TurboAza

0

라이센스에 보관. 그냥 실행하십시오

$ANDROID_HOME/tools/bin/sdkmanager --licenses

파일 만 만들면 라이센스에 동의하지 않습니다. 그래서 이것이 더 좋은 방법입니다.

출처 : https://stackoverflow.com/a/45139795/6752349