Classes cannot be accessed from outside package

前端 未结 7 1945
既然无缘
既然无缘 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:21
    public SmartSaverCals(Context context)
    {
        this.context= context;
    }
    

    add public to Your constructor.in my case problem solved

    0 讨论(0)
提交回复
热议问题