Can't Compile Classes From An Imported Github Repository

已回答

I just imported a github repository, but now I can't seem to compile any classes. The option for adding any package or class was missing, so I added a new file with a .java extension, but it still couldn't compile.

1

File | Project Structure, configure the roots here:

0

Unmark the current root from Sources and mark the subdirectory inside as Sources.

0

Thank you! It works now.

0

请先登录再写评论。