3

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

releases在 GitHub 中创建,使用git tag. 对于release tags: v1.0, v1.1buildonJitpack成功。

但是,对于 version v.12buildonJitpack失败并出现此错误:

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

完整的错误日志在这里

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

知道为什么上述错误会弹出并自行消失吗?如果下次再次弹出,有什么修复建议吗?谢谢!

4

0 回答 0