Java Android studio:当我尝试将类移动到另一个包时发出警告
这是一个错误消息Java Android studio:当我尝试将类移动到另一个包时发出警告,java,android,android-studio,Java,Android,Android Studio,这是一个错误消息 Method Object.toString(), referenced in method SettingActivity.saveDataButtons(), will not be accessible in module personal-health-assistant back up 29 oct Method String.trim(), referenced in method SettingActivity.setNullCurrentFocuse
Method Object.toString(),
referenced in method SettingActivity.saveDataButtons(),
will not be accessible in module personal-health-assistant back up 29 oct
Method String.trim(),
referenced in method SettingActivity.setNullCurrentFocusedEditText(),
will not be accessible in module personal-health-assistant back up 29 oct
Method String.length(),
referenced in method SettingActivity.setNullCurrentFocusedEditText(),
will not be accessible in module personal-health-assistant back up 29 oct
我想知道
此警告通常针对不可访问的非公共方法发出(因为将其移出包会阻止初始包的其他成员访问它) 然而,因为在您的案例中SettingActivity正在访问非常常见的类对象和字符串,以及它们的公共方法,所以您似乎正在将其移动到一个未连接到SDK的包中
“个人健康助手备份10月29日”可能配置了另一个SDK(非Android)也许你可以发布一些代码是的,我只想转到新的软件包。那么我应该怎么做呢?在模块设置中,将Android SDK设置为该模块的SDK。