android - Jitpack:由于未接受某些许可证,无法安装以下 Android SDK 包

标签 android jitpack

我已经用谷歌搜索了,有人说在尝试了几次之后,通过创建一个新版本就解决了,但它似乎对我不起作用。

我该如何解决?

* What went wrong:
A problem occurred configuring project ':analytics'.
> Failed to notify project evaluation listener.
   > Failed to install the following Android SDK packages as some licences have not been accepted.
        platforms;android-27 Android SDK Platform 27
        build-tools;27.0.3 Android SDK Build-Tools 27.0.3
     To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
     Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

     Using Android SDK: /opt/android-sdk-linux
   > Cannot add task ':analytics:install' as a task with that name already exists.
   > Could not get unknown property 'androidJavadocs' for project ':analytics' of type org.gradle.api.Project.

https://jitpack.io/com/github/littlehome-eugene/analytics-android/1.0/build.log

最佳答案

您可能遇到过:https://issuetracker.google.com/issues/123054726

作为解决方法,我单独安装了它。即

$ yes | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-27"
$ yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;27.0.3"

关于android - Jitpack:由于未接受某些许可证,无法安装以下 Android SDK 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54268074/

相关文章:

java - 从ArrayList中选择某些数据

android - 在 Android 中构建具有多种风格的 jitpack 库

android - 如何在 Github 上创建库并通过 Android Studio 中的 gradle 依赖项使用它

android - 添加两个库在 Android Studio 中创建错误

android - 如何从 adb shell 获取连接到 Android 设备的设备列表

android - Twitter4j TwitterStream 停止/关闭

android - 是否可以通过导航组件深层链接传递 Parcelable 对象?

android - 单击 RecyclerView 中的名称字段时显示刻度线图像?

java - "Android Gradle plugin requires Java 11 to run"发布jitpack库时

android - 找不到com.affolestad.material-dialogs