The above answers are correct, but it seems that this is only the first step towards solving this problem, because I ran into the same problem.
So what can be done?
First step
- First download google_service_libary not only jar and now paste this into E: \ android \ CFPEvents \ cfp-android-user (path to your project folder).
Second step
Close the project
Back up your project
Delete the .idea folder in the project root directory
Delete all .iml files in your project
Import the project into Android Studio and in the dialog box that you are prompted for the file, select the build.gradle file.
After that, you should be fine.
Abhishek tamta
source share