Android studio - Task 'collects' not found in project ': google-play-services_lib'

When I click Build -> Rebuild Project , I get this error.

enter image description here

Everything is fine with the map. I successfully sync build.gradle and clean up the project without errors. And I can run the card on my device.

build.gradle

 buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.0' } } apply plugin: 'android' repositories { mavenCentral() } dependencies { compile 'com.android.support:support-v4:20.0.0' compile 'com.google.android.gms:play-services:5.0.77' } android { compileSdkVersion 20 buildToolsVersion '20' defaultConfig { minSdkVersion 10 targetSdkVersion 20 } } 

manifest.xml

 <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> 
+6
source share
1 answer

You have a link to google-play-services_lib in the settings.gradle file. If you do not have a module in the directory named "google-play-services_lib" from your project root, which I believe you will not do, remove this bit from the settings file. The right way to add a dependency on the Services is not to add this to your settings file, but to the compile expression in your dependencies block of your build.gradle file, since you already have it done:

 compile 'com.google.android.gms:play-services:5.0.77' 
+3
source

Source: https://habr.com/ru/post/972160/


All Articles