我正在尝试使用 jitpack 发布我的 android 库。但是得到buildscript {} blocks must appear before any plugins {} blocks error.
我已经提到了这个问题:Getting 'buildscript {}blocksmustearbeforeanyplugins{}blocks'error in jitpack但没有找到任何解决方案。
错误:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/jitpack/build/build.gradle' line: 26
* What went wrong:
Could not compile build file '/home/jitpack/build/build.gradle'.
> startup failed:
build file '/home/jitpack/build/build.gradle': 26: all buildscript {} blocks must appear before any plugins {} blocks in the script
See https://docs.gradle.org/7.0.2/userguide/plugins.html#sec:plugins_block for information on the plugins {} block
@ line 26, …Run Code Online (Sandbox Code Playgroud)