# Cant build android app

**URL:** <https://forum.ionicframework.com/t/cant-build-android-app/146045>\
**Category:** ionic-v3\
**Created:** [October 29, 2018, 9:23am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045 "2018-10-29T09:23:08Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 9:23am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/1 "2018-10-29T09:23:08Z")

</div>

Hi guys, when I try to build my app see this error (2 weeks ago run correctly)

````auto
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:11.8.+.
     Versions that do not match:
         1.1.0
         1.0.3
         1.0.2
         1.0.1
         1.0.0
       Searched in the following locations:
         file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/google/m2repository/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
         file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/google/m2repository/com/google/android/gms/strict-version-matcher-plugin/
         file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
         file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/
         file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/android/m2repository/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
         file:/C:/Users/Nuria/AppData/Local/Android/Sdk/extras/android/m2repository/com/google/android/gms/strict-version-matcher-plugin/
         file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/maven-metadata.xml
         file:/C:/Users/Nuria/Desktop/Iamvo - copia (2)/myApp/platforms/android/sdk-manager/com/google/android/gms/strict-version-matcher-plugin/
     Required by:
         project : > com.google.gms:google-services:4.2.0
```_emphasized text_
````

---

<div class="post-metadata">

**Author:** ![bilow](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bilow](https://forum.ionicframework.com/u/bilow)\
**Post date:** [October 29, 2018, 10:36am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/2 "2018-10-29T10:36:19Z")

</div>

First try to completely rebuild your android build.

```auto
ionic cordova platform rm android
ionic cordova platform add android

```

P.s. You might have to update your gradle plugin (Android Studio) too. Just open any Android project in Android Studio (or create just an empty one). You’ll see the syncing process down in the statusbar. Wait for it to finish.

---

<div class="post-metadata">

**Author:** ![nitishrajput01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nitishrajput01/32/123978_2.png) [@nitishrajput01](https://forum.ionicframework.com/u/nitishrajput01)\
**Post date:** [October 29, 2018, 11:10am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/3 "2018-10-29T11:10:14Z")

</div>

clean your existing build

```auto
cordova clean [<platform> [...]]
ex : cordova clean android

```

then open sdk manager and

1. Uninstall android support repository
2. Install again android support repository

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 11:36am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/4 "2018-10-29T11:36:33Z")

</div>

Try, do it and works, but after of this I was update all m plugins [https://ionic.zone/cordova/update](https://ionic.zone/cordova/update)

Thx

---

<div class="post-metadata">

**Author:** ![nitishrajput01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nitishrajput01/32/123978_2.png) [@nitishrajput01](https://forum.ionicframework.com/u/nitishrajput01)\
**Post date:** [October 29, 2018, 11:38am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/5 "2018-10-29T11:38:45Z")

</div>

glad to help…🙂

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 11:42am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/6 "2018-10-29T11:42:51Z")

</div>

Mmmm doesn’t work, don’t generate the output folder in build :S

---

<div class="post-metadata">

**Author:** ![nitishrajput01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nitishrajput01/32/123978_2.png) [@nitishrajput01](https://forum.ionicframework.com/u/nitishrajput01)\
**Post date:** [October 29, 2018, 11:43am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/7 "2018-10-29T11:43:45Z")

</div>

what errors u are getting

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 11:47am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/8 "2018-10-29T11:47:37Z")

</div>

> [@nitishrajput01](#):
>
> cordova clean android

nothing errors… But before I have this error,

```auto
 Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:CordovaLib] 

```

so I was change de minSdkVersion in my config.xml. But If I change it, dont run the build

M ioinic info:

```auto
Ionic:

   ionic (Ionic CLI) : 4.2.1
   Ionic Framework : ionic-angular 3.5.2
   @ionic/app-scripts : 2.0.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 7.1.1
   Cordova Plugins : no whitelisted plugins (16 plugins total)

System:

   Android SDK Tools : 26.1.1 (C:\Users\Nuria\AppData\Local\Android\sdk)
   NodeJS : v8.10.0 (C:\Program Files\nodejs\node.exe)
   npm : 5.7.1
   OS : Windows 10

```

---

<div class="post-metadata">

**Author:** ![nitishrajput01](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nitishrajput01/32/123978_2.png) [@nitishrajput01](https://forum.ionicframework.com/u/nitishrajput01)\
**Post date:** [October 29, 2018, 11:51am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/9 "2018-10-29T11:51:47Z")

</div>

> [@Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library \[org.xwalk:xwalk\_core\_library:21.51.546.7\]](https://forum.ionicframework.com/t/manifest-merger-failed-uses-sdk-minsdkversion-15-cannot-be-smaller-than-version-16-declared-in-library-org-xwalk-xwalk-core-library-21-51-546-7/68561):
>
> Issues on building CROSSWALK version 21.51.546.7 on android build throws error FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:processArmv7DebugManifest’. BUILD FAILED Total time: 6.077 secs Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [org.xwalk:xwalk\_core\_library:21.51.546.7] E:\newapp\MyApteka\platfo rms\android\build\intermediates\exploded-aar\org.xwalk\xwalk\_core\_library\21.51.546.7\…

check this link it might happen if you are using some plugin which should have atleast minimumSdk version 16.

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 11:59am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/10 "2018-10-29T11:59:21Z")

</div>

Omg…outfolder was hide… work correctly. Thanks!!!

---

<div class="post-metadata">

**Author:** ![pserna95](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@pserna95](https://forum.ionicframework.com/u/pserna95)\
**Post date:** [October 29, 2018, 12:13pm UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/11 "2018-10-29T12:13:39Z")

</div>

How did you fix it finally? I’m facing the same problem 😫

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 29, 2018, 12:21pm UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/12 "2018-10-29T12:21:12Z")

</div>

update all m plugins [[https://ionic.zone/cordova/update](https://ionic.zone/cordova/update)] and after rm and install the platform

---

<div class="post-metadata">

**Author:** ![pserna95](https://avatars.discourse-cdn.com/v4/letter/p/13edae/32.png) [@pserna95](https://forum.ionicframework.com/u/pserna95)\
**Post date:** [October 30, 2018, 8:48am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/13 "2018-10-30T08:48:43Z")

</div>

It didnt work for me, If i try to remove some plugin for update it, the console shows me a weird message:

```auto
Uninstalling cordova-plugin-firebase from android
Android Studio project detected
missing file :: app/src/main
Error during processing of action! Attempting to revert...
(node:1121) UnhandledPromiseRejectionWarning: Error: Uh oh!
ENOENT: no such file or directory, open '/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.parseElementtreeSync (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at AndroidProject.getCustomSubprojectRelativeDir (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/AndroidProject.js:105:28)
    at uninstall (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/lib/pluginHandlers.js:131:46)
    at ActionStack.process (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.removePlugin (/Users/smartlogin/Desktop/SmartLogin-android2copia/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:148:17)
(node:1121) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1121) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

```

And after that, I can’t even get the same error that I have previously (the one about strict-version-matcher), because I get similar errors to the one that I have shown

---

<div class="post-metadata">

**Author:** ![NurGuz](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nurguz/32/111671_2.png) [@NurGuz](https://forum.ionicframework.com/u/NurGuz)\
**Post date:** [October 31, 2018, 8:10am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/14 "2018-10-31T08:10:19Z")

</div>

I don’t know what is the incorrect plugin. I have this plugins but I dont know what is

```auto

PS C:\Users\Nuria\Desktop\Iamvo - copia (2)\myapp> npm outdate
Package Current Wanted Latest Location
@angular/common 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/compiler 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/compiler-cli 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/core 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/forms 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/http 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/platform-browser 4.1.3 4.1.3 7.0.1 ionic-hello-world
@angular/platform-browser-dynamic 4.1.3 4.1.3 7.0.1 ionic-hello-world
@ionic-native/admob-pro 4.5.3 4.16.0 4.16.0 ionic-hello-world
@ionic-native/app-version 4.6.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/camera 4.3.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/core 3.14.0 3.14.0 4.16.0 ionic-hello-world
@ionic-native/diagnostic 4.5.3 4.16.0 4.16.0 ionic-hello-world
@ionic-native/dialogs 4.6.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/email-composer 4.5.3 4.16.0 4.16.0 ionic-hello-world
@ionic-native/facebook 4.3.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/firebase 4.6.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/geolocation 4.2.1 4.16.0 4.16.0 ionic-hello-world
@ionic-native/market 4.6.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/onesignal 4.6.0 4.16.0 4.16.0 ionic-hello-world
@ionic-native/splash-screen 3.12.1 3.12.1 4.16.0 ionic-hello-world
@ionic-native/status-bar 3.12.1 3.12.1 4.16.0 ionic-hello-world
@ionic/app-scripts 2.0.2 2.0.2 3.2.0 ionic-hello-world
@ionic/cli-utils 1.10.2 1.19.3 2.2.1 ionic-hello-world
@ionic/storage 2.0.1 2.0.1 2.2.0 ionic-hello-world
ajv 5.2.2 5.5.2 6.5.4 ionic-hello-world
angularfire2 4.0.0-rc0 4.0.0-rc0 5.1.0 ionic-hello-world
cordova-android 6.3.0 6.3.0 7.1.1 ionic-hello-world
cordova-android-support-gradle-release 1.2.1 1.4.5 1.4.5 ionic-hello-world
cordova-plugin-admobpro 2.31.1 2.35.3 2.35.3 ionic-hello-world
cordova-plugin-camera 2.4.1 2.4.1 4.0.3 ionic-hello-world
cordova-plugin-device 1.1.7 1.1.7 2.0.2 ionic-hello-world
cordova-plugin-facebook4 1.9.1 1.10.1 3.1.0 ionic-hello-world
cordova-plugin-firebase 0.1.25 0.1.25 2.0.5 ionic-hello-world
cordova-plugin-splashscreen 4.1.0 4.1.0 5.0.2 ionic-hello-world
cordova-plugin-statusbar 2.4.1 2.4.2 2.4.2 ionic-hello-world
cordova.plugins.diagnostic 4.0.3 4.0.10 4.0.10 ionic-hello-world
device 0.3.8 0.3.9 0.3.9 ionic-hello-world
firebase 3.9.0 3.9.0 5.5.6 ionic-hello-world
ionic 3.20.0 3.20.0 4.2.1 ionic-hello-world
ionic-angular 3.5.2 3.5.2 3.9.2 ionic-hello-world
ionicons 3.0.0 3.0.0 4.4.6 ionic-hello-world
onesignal-cordova-plugin 2.3.3 2.4.4 2.4.4 ionic-hello-world
promise-polyfill 6.1.0 6.1.0 8.1.0 ionic-hello-world
rxjs 5.4.0 5.4.0 6.3.3 ionic-hello-world
typescript 2.3.4 2.3.4 3.1.4 ionic-hello-world
zone.js 0.8.12 0.8.12 0.8.26 ionic-hello-world

```

---

<div class="post-metadata">

**Author:** ![gonzalogobea](https://avatars.discourse-cdn.com/v4/letter/g/58956e/32.png) [@gonzalogobea](https://forum.ionicframework.com/u/gonzalogobea)\
**Post date:** [November 1, 2018, 6:08am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/15 "2018-11-01T06:08:50Z")

</div>

Hello,

In my case, I found that cordova-plugin-firebase had a confilct with another plugin with the framework “com.google.gms:google-services”.

So, first I went to plugins \> cordova-plugin-firebase \> plugin.xml, then i changed the line \<framework src=“com.google.gms:google-services:+” /\> for \<framework src=“com.google.gms:google-services:4.2.0” /\>

When i did this changed, the compile process throw an error with de java version, then i went to platforms \> android \> build.gradle i changed  
sourceCompatibility JavaVersion.VERSION\_1\_6  
targetCompatibility JavaVersion.VERSION\_1\_6  
for  
sourceCompatibility JavaVersion.VERSION\_1\_8  
targetCompatibility JavaVersion.VERSION\_1\_8

and because this java version use Jack, so i had to add  
jackOptions {  
enabled true  
}  
in the defaultConfig space.

> <https://stackoverflow.com/questions/36880115/how-to-enable-jack-java-android-compiler-kit-in-android-studio>

It worked for me.  
I hope to help you.  
Regards!

---

<div class="post-metadata">

**Author:** ![haris0](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@haris0](https://forum.ionicframework.com/u/haris0)\
**Post date:** [November 1, 2018, 7:02am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/16 "2018-11-01T07:02:11Z")

</div>

I have same issue here, I’ve tried 2 solution above

1. Cordova clean android and re install android support repository  
but error when try to “cordova clean android”

2. and gonzalogobea solutiond, but still not work for me,.,.

any one have other solutions?

I’ve searched the solution for 3 days but no progress, please help me

here my error

```auto
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
   > Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:11.2.+.
     Versions that do not match:
         1.1.0
         1.0.3
         1.0.2
         1.0.1
         1.0.0
     Searched in the following locations:

```

---

<div class="post-metadata">

**Author:** ![biztechcs](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biztechcs/32/116434_2.png) [@biztechcs](https://forum.ionicframework.com/u/biztechcs)\
**Post date:** [November 3, 2018, 10:22am UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/17 "2018-11-03T10:22:45Z")

</div>

Thanks for sharing this i too was getting that same issue while building [ionic application development](https://www.biztechcs.com/ionic-application-development/) with android.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:12pm UTC](https://forum.ionicframework.com/t/cant-build-android-app/146045/18 "2021-07-19T21:12:02Z")

</div>

Closed on July 19, 2021, 9:12pm UTC


