1. Add this line before the plugins of bulid.gradle buildscript { repositories { gradlePluginPortal() } dependencies { classpath "com.yanzhenjie.andserver:plugin:2.1.9" } }
The second step, add to the repositories of dependencyResolutionManagement in setting.gradle
maven { url 'https://jitpack.io' }
as shown in the picture