Google play services stop working after adding firebase android

When i install firebase analytics i have to change appid as stated in docs. But when i do that leaddrboard inapp and any gps stop working.
In unity there is a google play solver that fixes this problem.
How can i fix it in sdkbox?

Problem fixed thanks

how do you fix the problem?

Deleted the build folder and build again

Off topic any updates on incorporate other firebase services like database?