我有一个应用程序,当我使用命令汇编等时,它构建成功......一切正常。我决定使用 Jenkins,但在构建时出现错误,其中显示:
* What went wrong:
25 A problem occurred configuring project ':app'.
26 > You have not accepted the license agreements of the following SDK components:
27 [Android SDK Build-Tools 25].
28 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.
我正在使用构建工具版本 25.0.0,并且我使用命令在 Jenkins 上使用最新版本更新了 SDKandroid update sdk --no-ui --filter the_index_to_update
那么有什么问题吗?
正如谷歌在这里所说:使用 Gradle 自动下载缺失的包 https://developer.android.com/studio/intro/update.html#download-with-gradle
您可以将本地许可证复制到远程。所以现在它可以工作了,只是太糟糕了,我不知道在远程更新 sdk 时该怎么做......
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)