The package has been imported through Maven in DEA, and the location of the package can also be located in idea, but error is always reported when compiling, and the package cannot be found.
Presumably, the reason is that the version of idea is incompatible with the build built by Maven
It is recommended to uninstall the idea and install it with another version of the idea. If you do not want to replace the idea, you can take the following measures.
The solution is as follows:
Hosting the build and run of idea under maven
When checked, recompilation can run normally
Read More:
- Does the version of idea2020.1 import mybayis jar package or report an error? Error: (4,28) Java: package org.apache.ibatis.io does not exist
- Idea couldn’t be found org.springframework.context .support
- IntelliJ idea error: package not found or symbol not found
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- How to Fix Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
- Solution of plugins error reporting in idea maven
- Idea Maven project uses package to package and report error (package does not exist)
- The introduction of third-party jar package in mavn project results in classnotfoundexception
- ADB:INSTALL_ FAILED_ UPDATE_ Incompatible [solved]
- [error] attributeerror: module ‘SIP’ has no attribute ‘setapi‘
- Reason for error in idea @ springbootapplication [solved]
- Syntax Error: Error: Node Sass version 6.0.1 is incompatible with ^4.0.0.
- appear Error:java : javacTask: source release 1.7 requires target release 1.7
- javac Task Error source release 1.7 requires target release
- Record the python package EXE file running error importerror, but do not prompt specific error solution
- Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0
- Error in pom.xml file of sub module of Maven aggregation project
- Solution to the expiration and unavailability of Android studio plug-in plugin
- Error in STS importing POM file of Maven project
- Maven global configuration