• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

What is a library group prefix? It's now breaking my build.

Stokestack

Lurker
Hi all.

I'm new to Android development and am cramming info, but I've inherited a project that is now (after updating Android Studio and the project) failing the de-linter with an error saying that a method on a control can "only be called from within the same library group prefix."

The method in question is MenuItemImpl.setExclusiveCheckable, and the error says it can only be called from "within the same library group prefix." It goes on to say:

referenced groupId=androidx.appcompat with prefix androidx from groupId=[my application] [RestrictedApi]

What does this mean? Is this a deprecated API call?

Thanks for any insight.
 
Hi all.

I'm new to Android development and am cramming info, but I've inherited a project that is now (after updating Android Studio and the project) failing the de-linter with an error saying that a method on a control can "only be called from within the same library group prefix."

The method in question is MenuItemImpl.setExclusiveCheckable, and the error says it can only be called from "within the same library group prefix." It goes on to say:

referenced groupId=androidx.appcompat with prefix androidx from groupId=[my application] [RestrictedApi]

What does this mean? Is this a deprecated API call?

Thanks for any insight.

Maybe this will help: https://developer.android.com/jetpack/androidx/migrate
 
Back
Top Bottom