A problem occurred evaluating root project 'xxx'.
> Could not create task ':prepareRelease'.
> Could not create task of type 'GitReleaseTask'.
> Could not generate a decorated class for type GitReleaseTask.
> org/eclipse/jgit/lib/ObjectId has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
字符串
GitReleaseTask.groovy是使用gradle中的org.eclipse.jgit库的groovy任务。我在构建我的项目时遇到了上述异常。我也注意到jgit v5.13目前在我的项目的classpath中。构建成功,直到几天前,突然它失败了。我猜jgit v5.13是使用高级版本的Java构建的,我们使用Java8构建我们的项目。
有人能帮忙吗?
1条答案
按热度按时间2fjabf4q1#
尝试将您的JAVA版本升级到11
字符串
另外,强文本****升级jgit依赖性
型