License for package Android SDK Platform 23 not accepted

烂漫一生 提交于 2020-01-11 10:41:29

问题


Trying to react-native run-android but got this:

You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1].

All licenses have been accepted with sdkmanager --licenses. How do I fix this?


Solution: Deleted /Users/WHATEVER-YOUR-NAME-IS/Library/Android, then reinstalled all SDKs through Android Studio's SDK Manager.


回答1:


Go to Your-Sdk-home-Directory/tools/bin

sdkmanager --licenses

Accept the licences pending.

If still doesn't work, try installin the 23.0.1 or which it is asking for Go to Your-Sdk-home-Directory/tools

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

That worked for me..

if it's still giving any issues. Give a try with -keeping the licences folder in both sdk home directory and tools/bin directory

-run

sdkmanager "build-tools;23.0.1"


来源:https://stackoverflow.com/questions/45662413/license-for-package-android-sdk-platform-23-not-accepted

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!