Could not find manifest-merger.jar

4.4k Views Asked by At

Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.0). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.1.0/manifest-merger-26.1.0.jar

Already tried the solution :Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.1.2) error after gradle 4.4 upgrade but no success.

Can anyone plz help me out

My support libraries having same number of version

 implementation 'com.android.support:appcompat-v7:27.0.2'
 implementation 'com.android.support:cardview-v7:27.0.2'
 implementation 'com.android.support:design:27.0.2'
 implementation 'com.android.support:recyclerview-v7:27.0.2'
2

There are 2 best solutions below

1
On BEST ANSWER

in my case change:

buildscript {
repositories {
    jcenter()
    google()
    mavenCentral()
  }
}

TO:

buildscript {
repositories {
    google() //<--Google first
    jcenter()
    mavenCentral()
  }
}

it works. wtf!

0
On

Work for me:

  1. close project (!)
  2. gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
  1. build.gradle:
dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'
}
  1. google() above:
repositories {
    google()
    jcenter()
}
  1. open project and sync