标签:erro more red .com license error min androi bug
问题出现在配完环境,生成apk的时候
>ionic build android
问题描述:
BUILD FAILED Total time: 9 mins 18.732 secs FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘android‘. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25]. 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. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project ‘android‘. > You have not accepted the license agreements of the following SDK components: [Android SDK Platform 25]. 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. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
分析:根据字义是没有获取到license的问题
解决方案:
在cmd命令窗口下,先cd到 ***\Android\android-sdk\tools\bin下
运行
sdkmanager --update
如果不行就
sdkmanager --licenses
会有
Accept? (y/N): y
接受 y 回车就行了
然后再打包就OK了^.^
You have not accepted the license agreements of the following SDK components
标签:erro more red .com license error min androi bug
原文地址:http://www.cnblogs.com/yangchas/p/7762771.html