简体   繁体   中英

Could not find manifest-merger.jar

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'

in my case change:

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

TO:

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

it works. wtf!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM