Am trying to add Google+ sign in to my app, and i understand i have to add Google Play Services to my project libraries.So i followed the steps provided in this StackOverflow question, but when am done i get the error
Gradle: module 'google-play-services_lib' won't be compiled. Unfortunately you can't have non-Gradle Java module and Android-Gradle module in one project.
To show i have followed the instructions correctly, this is what i have done.
I opened
Project Structure.Clicked on
Modulesin the left tab, then the+button.Selected
import modulesin the drop down menuNavigated to the location of the google play services_lib folder which in my case is
..\sdk\extras\google\google_play_services\libproject\google-play-services_libclicked on my project (Still in project structure) and then opened the
dependenciestab on the right. Clicked the+button and from the drop down menu selectedModule Dependenciesand selectedgoogle-play-services_libfrom the list of libraries. Then i clicked the+button again and selectedjars or directoriesfrom the drop down menu and then navigated to.
...\sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google-play-services.jar
I have tried rebuilding the project and even restarting IntelliJ, but the problem still persists.Any help?