gpt4 book ai didi

java - 安卓工作室 : Warning while I try to move Class to another package

转载 作者:搜寻专家 更新时间:2023-10-30 21:34:28 24 4
gpt4 key购买 nike

这是一条错误消息。

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

我想知道

  1. 这怎么会发生?为什么有些方法不能在模块中访问?
  2. 重要吗?
  3. 如何解决这个警告?

最佳答案

此警告通常针对无法访问的非公共(public)方法发出(因为将其移出包会阻止初始包的其他成员访问它)。

但是,由于在您的情况下 SettingActivity 正在访问相当常见的类 Object 和 String,以及它们的公共(public)方法,因此您似乎正在将它移动到一个未连接到 SDK 的包中。

“personal-health-assistant back up 29 oct”可能配置了另一个 SDK(非 Android)

关于java - 安卓工作室 : Warning while I try to move Class to another package,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20175412/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com