I have error while fab.setVisibility(View.VISIBLE); ( compileSdkVersion 28)
error:-
VisibilityAwareImageButton.setVisibility can only be called from within the same library group (groupId=com.android.support) less... (Ctrl+F1)
This API has been flagged with a restriction that has not been met. Examples of API restrictions: Method can only be invoked by a subclass Method can only be accessed from within the same library (defined by the Gradle library group id) .* Method can only be accessed from tests. . You can add your own API restrictions with the @RestrictTo annotation.
I have error while fab.setVisibility(View.VISIBLE); ( compileSdkVersion 28)
error:- VisibilityAwareImageButton.setVisibility can only be called from within the same library group (groupId=com.android.support) less... (Ctrl+F1) This API has been flagged with a restriction that has not been met. Examples of API restrictions: Method can only be invoked by a subclass Method can only be accessed from within the same library (defined by the Gradle library group id) .* Method can only be accessed from tests. . You can add your own API restrictions with the @RestrictTo annotation.
Screenshot: