Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.0.0) in ionic3?

Kapil soni picture Kapil soni · Dec 27, 2018 · Viewed 10.8k times · Source

I have got above error after generating build in ionic3 I have tried a lot of solution but not working tell me, anyone, how to fix above error? below I have to include //Project-properties file. I have tried below solution but did not work for me :

  1. Android: Getting "Manifest merger failed" error after updating to a new version of gradle
  2. https://forum.ionicframework.com/t/solved-ionic-run-android-com-android-support-conflicting-v26-alpha1-and-v25-3-1/91826/19

Answer

Danielly Queiroz picture Danielly Queiroz · Jan 2, 2019

This solution worked for me

1- In the CordovaLib folder and in the build.gradle file, change the position of the Maven up

Repositories {
   maven {
         url "https://maven.google.com"
   }
   jcenter()
}

2- In the general build.gradle file of the project change the position of Maven up and add google()

Repositories {
   maven {
         url "https://maven.google.com"
   }
   google()
   jcenter()
}

3- In the build.gradle file of the APP folder change the position of Maven up and add google()

buildscript {
    repositories {
        maven {
            url "https://maven.google.com"
        }
        google()
        mavenCentral()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }
}

// Allow plugins to declare Maven dependencies via build-extras.gradle.
allprojects {
    repositories {
        google()
        mavenCentral();
        jcenter()
    }
}

4 - Finally, run the "Make Project" that is in the upper corner of Android Studio. View the image here