问题
I am working with React-Native, when I run the react-native run-android
run command I get this error
You have not accepted the license agreements of the following SDK components:[Android SDK Platform 23, Android SDK Build-Tools 23.0.1].
I have Android Studio with SDK version 26 and Android SDK Build-Tools 26 installed.
Why does react give this error?
回答1:
Can you try follow this comment and try if it solves your issue? https://github.com/ionic-team/ionic-cli/issues/1726#issuecomment-279164447
回答2:
the error show that you not accept license on build tools v23.0.1 you need to accept that license. do following things
Android\sdk\tools\bin>sdkmanager.bat "build-tools;23.0.1"
来源:https://stackoverflow.com/questions/45364498/you-have-not-accepted-the-license-agreements-android-sdk-platform-23