'Why is it important to add 'Experimental' annotation?

What is the benefit of adding annotations suggested by the lint such as "@ExperimentalApi" or other recommended stuff like this?

Does it mean in the future it can warn us if the API changed?



Solution 1:[1]

Yes, it means that the API can change or be removed in future.

Experimental APIs are good for testing around new functionalities but usually their use is discouraged in production code.

PS: Kotlin now uses @RequiresOptIn (and @OptIn) instead of @Experimental which is deprecated. You can find more info here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cactustictacs