build.gradle

tasks.withType(JavaCompile) { Set<File> fileSet = options.bootstrapClasspath.getFiles() List<File> newFileList = new ArrayList<>(); // Relative position, Modify the path according to storage locations newFileList. Add (new File (". / app/libs/framework. The jar ")) newFileList. AddAll (fileSet) options. BootstrapClasspath  = files( newFileList.toArray() ) } }Copy the code