The error report is inexplicable, but in fact, the dependency package imported by idea has multiple options, and it is wrong.
The required dependencies are as follows:
import org.apache.flink.api.common.serialization.SimpleStringSchema; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer; import java.util.Collections; import java.util.List; import java.util.Properties;
Read More:
- [Solved] Flink Error: Flink Hadoop is not in the classpath/dependencies
- [Solved] flink Write Files Error: lang.NoClassDefFoundError: org/apache/flink/api/common/typeinfo/TypeInformation
- [Solved] IDEA JSP File out.println Error: Cannot resolve method ‘println(java.lang.String)’
- [Solved] Flink jdbc Error: Access Denied for user ‘root‘@‘10.0.0.x‘ (using password: YES)
- [Solved] Flink Hadoop is not in the classpath/dependencies
- [Solved] java.lang.noclassdeffounderror when idea runs Flink: org/Apache/flick/API/common/executionconfig
- [Solved] Caused by: java.lang.ClassNotFoundException: org.apache.flink.api.common.typeinfo.TypeInformation
- Flink SQL contains aggregation operators Error: you cannot print directly
- [Solved] Failed to resolve: com.serenegiant:common:1.5.20
- Apache Altas Compile Error: [ERROR] Failed to execute goal on project atlas-testtools: Could not resolve
- [Solved] IDEA Error: Unable to resolve column XXXX
- [How to Fix] Spring boot startup error: could not resolve placeholder
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- [Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’
- [Solved] Could not resolve all dependencies for configuration ‘:app:debugRuntimeClass
- Gateway Error: Cannot resolve org.springframework.cloud:spring-cloud-starter-gateway:unknown
- [Solved] element-plus Error: Failed to resolve component
- Mybatis-plus calls its own method error: Invalid bound statement
- [Solved] ibatis.builder.BuilderException: Error parsing Mapper XML: Could not resolve type alias ‘XXX‘
- NPM Install Error: npm ERR! ERESOLVE unable to resolve dependency tree