Will not recognize class outside of package.

已回答

When a class has been moved into a package it will not recognize any other classes.

Trying to create a class that inherits from a abstract class but when moved into a package it cant access any other classes.

I have checked auto import when creating a new project but the problem still exists.

Also when starting a new project a java module is not being created automatically 

Problems occured after an update.

 

0
Avatar
Permanently deleted user

Its just started doing this I have completed projects before without this issue, I have not changed any of my settings but did update intellij and this has been a problem since.

So the child class won't recognize the parent class if its in a package how do I fix that ?

0

Java doesn't support importing classes that reside in the default package, this is language limitation, not IntelliJ IDEA:

https://stackoverflow.com/questions/283816/how-to-access-java-classes-in-the-default-package

0
Avatar
Permanently deleted user

Thank you for your help.

 

0

请先登录再写评论。