Ionic 3 android build crashes in startup

I am developing android app with map navigation plugin… before the navigation plugin, the app working normally. But after installed

ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator

the ionic cordova build android command throws below error

> cordova build android
Android Studio project detected

ANDROID_HOME=/Users/mazelon/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
studio
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now published.

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

	at build_2oatwbcuz91e1yov85asv190t.run(/Users/mazelon/WorkArea/deals/platforms/android/app/build.gradle:143)

Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.

:CordovaLib:preBuild
 
UP-TO-DATE



          ................
          ................
          ................



:app:compileDebugShaders UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE

:app:mergeDebugAssets
 
UP-TO-DATE
:app:transformClassesWithStackFramesFixerForDebug

:app:transformClassesWithDesugarForDebug

:app:transformClassesWithDexBuilderForDebug

:app:transformDexArchiveWithExternalLibsDexMergerForDebug
 
FAILED

FAILURE: 
Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

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

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
37 actionable tasks: 9 executed, 28 up-to-date
(node:21890) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /Users/mazelon/WorkArea/deals/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/mazelon/WorkArea/deals/platforms/android/app/src/main/java/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

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

* Get more help at https://help.gradle.org

BUILD FAILED in 10s
(node:21890) [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.

So, I ran cordova clean for above error. After that, build is successful. But, app crashing while startup.
I didn’t receiving any errors in colsole
The ionic cordova run android --device -l -c outputs,

BUILD SUCCESSFUL in 17s

46 actionable tasks: 44 executed, 2 up-to-date
Built the following apk(s): 
	/Users/mazelon/WorkArea/deals/platforms/android/app/build/outputs/apk/debug/app-debug.apk

ANDROID_HOME=/Users/mazelon/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
none
Skipping build...

Built the following apk(s): 
	/Users/mazelon/WorkArea/deals/platforms/android/app/build/outputs/apk/debug/app-debug.apk

Using apk: /Users/mazelon/WorkArea/deals/platforms/android/app/build/outputs/apk/debug/app-debug.apk

Package name: com.mazelon.xoomdeals
LAUNCH SUCCESS


[17:54:38]  console.log: deviceready has not fired after 5 seconds. 
[17:54:38]  console.log: Channel not fired: onDOMContentLoaded 
[17:54:45]  console.log: Angular is running in the development mode. Call enableProdMode() to enable the production 
            mode. 
[17:54:45]  console.log: OPEN database: _ionicstorage 
[17:54:45]  console.log: new transaction is queued, waiting for open operation to finish 
[17:54:45]  console.log: OPEN database: _ionicstorage - OK 
[17:54:45]  console.log: DB opened: _ionicstorage 
[17:54:45]  console.log: Ionic Native: deviceready event fired after 5063 ms 
[17:54:45]  console.log: Home service started 
[17:54:45]  console.log: http://dealstesting.mazelon.com/index.php/AppAPIs/Deals/getCategories 
[17:54:45]  console.log: http://dealstesting.mazelon.com/index.php/AppAPIs/Deals/getCities 

No errors in console. How do I need to debug this?
Please help me someone

My ionic info

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0 

local packages:

    @ionic/app-scripts : 3.1.10
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2 
    Node              : v8.9.4
    npm               : 6.1.0 
    OS                : macOS High Sierra
    Xcode             : Xcode 9.4.1 Build version 9F2000 

Environment Variables:

    ANDROID_HOME : /Users/mazelon/Library/Android/sdk

Misc:

    backend : pro

My ionic cordova plugin list

cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-advanced-http 1.11.1 "Advanced HTTP plugin"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-facebook4 2.2.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-googleplus 5.3.0 "Google SignIn"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 2.3.3 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
uk.co.workingedge.phonegap.plugin.launchnavigator 4.2.1 "Launch Navigator"

Note: For iOS, navigation working properly. for android only the app crashing

in case anyone had the same issue:

make sure you delete the previous files from @ionic/native and package.json

then install it like this:

$ ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator --variable GOOGLE_API_KEY_FOR_ANDROID="{your_api_key}" --variable OKHTTP_VERSION=3.10.0

in case you dont have google api key, or you dont want to use any, leave it empty