You have not accepted the license agreements of the following SDK components的解决方案

You have not accepted the license agreements of the following SDK components: [Android SDK Platform xx(xx为版本号)]的解决方案

step 1. 请先确认自己是否设置了ANDROID_HOME
step 2. 打开指令行工具在ANDROID_HOME\tools\bin输入sdkmanager –licenses,一直输入y然后回车确认,将所有sdk都认证
step 3. 确认ANDROID_HOME\licenses下面是否有生成license文件
tips: 如果ANDROID_HOME和实际sdk路径不一致,就将其拷贝过去

你可能感兴趣的:(Android)