首页 > 解决方案 > JitPack 构建失败“错误:未找到构建工件”

问题描述

我似乎无法理解为什么 JitPack 无法构建我的,当我检查构建日志时,我发现了这些错误和警告:

An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

WARNING:
Gradle 'install' task not found. Please add the 'maven' or 'android-maven' plugin.

我尝试按照此 StackOverflow答案中的建议解决 Java 版本错误,但它没有做任何事情。

我做错了什么,我该如何解决?

标签: androidandroid-studioandroid-libraryjitpack

解决方案


从设置中将 JAVA 版本更改为 11:

在此处输入图像描述


推荐阅读