The error occurred in line 13 of the script. It seems that there is a syntax error. The error message suggests that there are unexpected tokens on that line and recommends using ';' to separate expressions on the same line.

The specific error message is: 'Script compilation error:

Line 13: maven { url 'https://jitpack.io' }
^ Unexpected tokens (use ';' to separate expressions on the same line)'

This error is common when configuring Maven repositories in Gradle scripts. The issue arises because the 'url' block needs to be properly delimited. The correct syntax is:

maven {
  url 'https://jitpack.io'
}

By using curly braces '{}' to enclose the 'url' block and using single quotes '' around the URL, you ensure the proper syntax and avoid the unexpected token error. This approach ensures that the Maven repository is correctly defined in the script.

Script Compilation Error: Unexpected Tokens in Maven URL

原文地址: https://www.cveoy.top/t/topic/jvdw 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录