由于Android SDK许可协议,JitPack构建失败

时间:2018-05-30 03:42:24

标签: android-library jitpack

我的Github上有一个Android库:CalendarView,我是从原作者那里分出来的。我在Jitpack上发布了我的Android库。

我在GitHub中使用releases创建了git tag。对于release tags: v1.0, v1.1build上的Jitpack成功。

但是,对于版本v.12build上的Jitpack因此错误而失败:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Build-Tools 25.0.2, 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.

BUILD FAILED

完整错误日志为here

没有修复任何东西,我在Github上创建了另一个release tag: v1.3。然后在build上触发了Jitpack。构建成功没有错误。

知道为什么会出现上述错误&自己消失了吗?如果下次再次弹出修复建议吗?谢谢!

0 个答案:

没有答案