Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio: Warning while I try to move Class to another package

This is an error msg.

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

I want to know

  1. How can this happen? Why are some methods cannot will not be accessible in module?
  2. Is it matter?
  3. How to solve this warning?
like image 971
UmAnusorn Avatar asked Nov 24 '13 14:11

UmAnusorn


1 Answers

This warning is commonly emitted regarding inaccessible non-public methods (since moving it out of the package prevents other members of the initial package from accessing it).

However, since in your case SettingActivity is accessing quite common classes Object and String, and that too their public methods, it seems you are moving it to a package not hooked up to the SDK.

"personal-health-assistant back up 29 oct" might be configured with another SDK (non-Android)

like image 106
Ravindranath Akila Avatar answered Oct 20 '22 16:10

Ravindranath Akila