License for package Android SDK Platform 23 not accepted

前端 未结 2 617
深忆病人
深忆病人 2021-01-21 08:17

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

You have not accepted the license agreements of the following SDK components: [Android SDK Platform

2条回答
  •  轮回少年
    2021-01-21 08:44

    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"
    

提交回复
热议问题