1. Error Messages:
Clearing build system data... Executing pre-compile tasks... Loading Ant configuration... Running Ant tasks... Cleaning output directories... Running 'before' tasks Checking sources Finished, saving caches... gradle-resources-test:Groovy_Demo.main: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream Executing post-compile tasks... Loading Ant configuration... Running Ant tasks... Synchronizing output directories... 2022/1/10 11:08 - Build completed with 1 error and 0 warnings in 1 sec, 657 ms
2. Solution
Right-click the project root directory, select the “Open Module Settings” option,
Delete the main and test options in Modules,
Then select the menu bar “Build / Rebuild Project” option to recompile the project;
The project compiles through ;
Read More:
- [Solved] java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/util/ByteArrayBuffer
- [Solved] Flume Error: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration
- [Solved] java.lang.noclassdeffounderror when idea runs Flink: org/Apache/flick/API/common/executionconfig
- Start error in maven web project java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
- [Solved] flink Write Files Error: lang.NoClassDefFoundError: org/apache/flink/api/common/typeinfo/TypeInformation
- Springboot Run Error: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
- [Solved] java.lang.ClassNotFoundException: org.apache.ibatis.session.SqlSession
- [Solved] Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.typeinfo.TypeInformation
- [Maven Error] Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
- [Solved] Weblogic startup error: java.lang.NoClassDefFoundError
- Tomcat startup error: java.lang.NoClassDefFoundError
- Hive Error: FAILED: RuntimeException Error loading hooks(hive.exec.post.hooks): java.lang.ClassNotFoundException: org.apache.atlas.hive.hook.HiveHook
- Java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()Ljava/lang/Integer; error resolution
- [Solved] habse Start Error: Error: Could not find or load main class org.apache.hadoop.hbase.util.GetJavaProperty
- Apache Altas Compile Error: [ERROR] Failed to execute goal on project atlas-testtools: Could not resolve
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2
- [Solved] Ant Design Pro Project Startup Error: ChunkError mf-va_remoteEntry umi
- Android Studio compile error: build tools is corrupt [Solved]
- Some problems encountered in the initial construction of Ant Design Pro project, such as cross Env, webpack and so on