CopyPastor

Detecting plagiarism made easy.

Score: -1; Reported for: Open both answers

Possible Plagiarism

Plagiarized on 2018-01-14

Original Post

Original - Posted on 2017-12-01



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Your project-level `build.gradle` file is requesting that `com.android.tools.build:gradle:3.0.1` be added to the classpath, but it does not have `google()` in the list of repositories.
You want that `buildscript` closure to look like:
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } }
(notice the `google()` line)

I had the same problem, I tried [Manoj Prabhakar's solution][1] but I fixed adding the google() repository to the buildscript block in the project level build.gradle
buildscript { repositories { jcenter() google() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } }

[1]: https://stackoverflow.com/a/47459076/3172725

        
Present in both answers; Present only in the new answer; Present only in the old answer;