Classes cannot be accessed from outside package

前端 未结 7 2000
既然无缘
既然无缘 2020-12-11 14:43

I have two packages. The class I want to import from the first package is declared as PUBLIC. Despite, when I test a file from the second package it shows me compilation err

7条回答
  •  盖世英雄少女心
    2020-12-11 15:18

    Let me guess

    Your initial declaration of class PUBLICClass was not public, then you made it `Public', can you try to clean and rebuild your project ?

提交回复
热议问题