# Ionic cordova build (firebase-crashlytics ) error

**URL:** <https://forum.ionicframework.com/t/ionic-cordova-build-firebase-crashlytics-error/203691>\
**Category:** Ionic Framework\
**Created:** [January 28, 2021, 10:00am UTC](https://forum.ionicframework.com/t/ionic-cordova-build-firebase-crashlytics-error/203691 "2021-01-28T10:00:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamzz](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@pamzz](https://forum.ionicframework.com/u/pamzz)\
**Post date:** [January 28, 2021, 10:00am UTC](https://forum.ionicframework.com/t/ionic-cordova-build-firebase-crashlytics-error/203691/1 "2021-01-28T10:00:05Z")

</div>

ionic cordova plugin remove cordova-plugin-firebase-crashlytics

npm uninstall @ionic-native/firebase-crashlytics

FAILURE: Build failed with an exception.

- Where:  
Script ‘D:\unis\platforms\android\cordova-plugin-firebasex\sms-build.gradle’ line: 20

- What went wrong:  
A problem occurred evaluating script.

> Failed to apply plugin [class ‘com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin’]  
> Crashlytics was applied to a project without an Android plugin. Please make sure the Crashlytics plugin is applied after the appropriate Android plugin for your project.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 3s  
D:\unis\platforms\android\gradlew: Command failed with exit code 1 Error output:  
FAILURE: Build failed with an exception.

- Where:  
Script ‘D:\unis\platforms\android\cordova-plugin-firebasex\sms-build.gradle’ line: 20

- What went wrong:  
A problem occurred evaluating script.

> Failed to apply plugin [class ‘com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin’]  
> Crashlytics was applied to a project without an Android plugin. Please make sure the Crashlytics plugin is applied after the appropriate Android plugin for your project.

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 3s  
[ERROR] An error occurred while running subprocess cordova.

```
    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

```

(I am getting this when i try to build apk anyone can please help me to solve this issues. )
