Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.0.1)
11,524
Solution 1
I finally fixed the issue. This may be a workaround but it works. So if anyone having this issue, just follow this:
Swap the position of
jcenter()
andgoogle()
in project gradle file and in also all the other module you have in your project. Like in mine I havecrashlytics
,fabric
so just remember to make the changes in theirbuild.gradle
file as well:buildscript { repositories { jcenter() google() } }
to
buildscript { repositories { google() jcenter() } }
Before building your project again go to your project folder and delete the
.gradle
folder from your project and then build your project.
Solution 2
- Go to Publishing Settings/Build, enable Custom Gradle Template
- Go to Assets/Plugins/Android/mainTemplate.gradle and change the postion from
buildscript {
repositories {
jcenter()
google()
}
to
buildscript {
repositories {
google()
jcenter()
}
- Remove gradle cache and rebuild. For Mac you can run rm -rf $HOME/.gradle/caches/ in terminal.
![Ayush Malviya](https://lh3.googleusercontent.com/-KPqwNyjWZ0A/AAAAAAAAAAI/AAAAAAAAG44/kEg-0fSWhfA/photo.jpg?sz=256)
Author by
Ayush Malviya
Updated on June 04, 2022Comments
-
Ayush Malviya about 2 years
I have a unity project I am exporting that project as android studio project while opening the android studio project I am getting this error
Gradle sync failed: Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.0.1). Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/manifest-merger/26.0.1/manifest-merger-26.0.1.jar
I have a few old exported project that was working fine before but today they are also giving the same error.
-
Ayush Malviya over 5 yearsyou mean adding maven { url 'maven.google.com' } this into repositories right?
-
Deepak sharma over 4 yearsthanks! saved my day. it worked after removing cache, rm -rf $HOME/.gradle/caches/
-
Vincent Plus over 4 yearsThanks for letting me know. So happy to hear that. @Deepaksharma