Missing related jars or components

问题描述:The type * cannot be resolved. It is indirectly referenced from required .class files

Reason: The class you are using calls another class, which calls other classes, and the relationship may have many layers. In the process of this call, the absence of the package where a certain class is located will cause the above error.

Workaround: Import the missing package . If it is in the case of maven , it may be that the xxx file in the local warehouse is wrong, delete it, re-dependency, and re-download it.

E.g:

The program uses com.jiuqi.dna.bap.common.constants.BapImages;

BapImages calls com.jiuqi.dna.ui.appearance.IdentityValueQuerier;

The component where BapImages is located is in the com.jiuqi.dna.bap.common project

The component where IdentityValueQuerier is located is in the com.jiuqi.dna.ui.portal project

The above error will occur if the missing component com.jiuqi.dna.ui.portal;

The solution is to introduce the engineering package into the project

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326752813&siteId=291194637