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
Modules
in the left tab, then the+
button.Selected
import modules
in 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_lib
clicked on my project (Still in project structure) and then opened the
dependencies
tab on the right. Clicked the+
button and from the drop down menu selectedModule Dependencies
and selectedgoogle-play-services_lib
from the list of libraries. Then i clicked the+
button again and selectedjars or directories
from 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?