When I write code about firebase analysis, for example FirebaseAnalytics.getInstance()
, I get a warning message:
Missing permissions required by FirebaseAnalytics.getInstance: android.permission.ACCESS_NETWORK_STATE and android.permission.WAKE_LOCK
Here is a screenshot:
I did not find anything about this in googling.
I also tried to clean and restore my project. Restarting Android Studio. Nothing succeeded.
What is the problem?
Edit: There are permissions. I see them in a united manifest. But still gives an error.
source share