Publishing ionic app V5

Ionic Info :

Project Dependencies:
“dependencies”: {
@angular-devkit/build-optimizer”: “^0.1001.7”,
@angular/animations”: “^10.1.6”,
@angular/cdk”: “^10.2.5”,
@angular/common”: “^10.1.6”,
@angular/core”: “^10.1.6”,
@angular/forms”: “^10.1.6”,
@angular/material”: “^10.2.5”,
@angular/platform-browser”: “^10.1.6”,
@angular/platform-browser-dynamic”: “^10.1.6”,
@angular/router”: “^10.1.6”,
@capacitor/core”: “2.4.2”,
@ionic-native/android-permissions”: “^5.29.0”,
@ionic-native/core”: “^5.29.0”,
@ionic-native/email-composer”: “^5.29.0”,
@ionic-native/facebook”: “^5.29.0”,
@ionic-native/file”: “^5.29.0”,
@ionic-native/file-opener”: “^5.29.0”,
@ionic-native/firebase-authentication”: “^5.29.0”,
@ionic-native/google-plus”: “^5.29.0”,
@ionic-native/in-app-browser”: “^5.29.0”,
@ionic-native/splash-screen”: “^5.29.0”,
@ionic-native/status-bar”: “^5.29.0”,
@ionic/angular”: “^5.4.0”,
@sendgrid/mail”: “^7.3.0”,
“android”: “0.0.8”,
“angularfire2”: “^5.4.2”,
“browser”: “^0.2.6”,
“cocoapods”: “0.0.0”,
“cordova-browser”: “^6.0.0”,
“cordova-plugin-android-permissions”: “^1.1.0”,
“cordova-plugin-device”: “^2.0.3”,
“cordova-plugin-facebook4”: “^6.4.0”,
“cordova-plugin-file”: “^6.0.2”,
“cordova-plugin-file-opener2”: “^3.0.5”,
“cordova-plugin-googleplus”: “^8.5.1”,
“cordova-plugin-inappbrowser”: “^4.0.0”,
“cordova-plugin-ionic-keyboard”: “^2.2.0”,
“cordova-plugin-ionic-webview”: “^5.0.0”,
“cordova-plugin-splashscreen”: “^6.0.0”,
“cordova-plugin-splashscreen-background-color”: “^1.4.0”,
“cordova-plugin-statusbar”: “^2.4.3”,
“cordova-plugin-whitelist”: “^1.3.4”,
“cordova-res”: “^0.15.1”,
“core-js”: “^3.6.5”,
“de.sitewaerts.cordova.documentviewer”: “^0.2.2”,
“file-saver”: “^2.0.2”,
“firebase”: “^7.24.0”,
“hammerjs”: “^2.0.8”,
“ionic-angular”: “^3.9.10”,
“ionic-native”: “https://github.com/ionic-team/ionic-native/tarball/v3.5.0”,
“lodash”: “^4.17.20”,
“ng2-file-upload”: “^1.4.0”,
“node-sass”: “^4.14.1”,
“platform”: “1.3.6”,
“pod”: “^0.9.0”,
“production”: “0.0.2”,
“rxjs”: “^6.6.3”,
“rxjs-compat”: “^6.6.3”,
“tslib”: “^2.0.3”,
“web-animations-js”: “^2.3.2”,
“zone.js”: “~0.11.2”
},
“devDependencies”: {
@angular-devkit/build-angular”: “^0.1001.7”,
@angular/cli”: “^10.1.7”,
@angular/compiler”: “^10.1.6”,
@angular/compiler-cli”: “^10.1.6”,
@angular/language-service”: “^10.1.6”,
@ionic/angular-toolkit”: “^2.3.3”,
@ionic/app-scripts”: “^3.2.4”,
@types/jasmine”: “^3.5.14”,
@types/jasminewd2”: “~2.0.8”,
@types/lodash”: “^4.14.162”,
@types/node”: “^14.14.0”,
“codelyzer”: “^6.0.1”,
“cordova-android”: “^9.0.0”,
“cordova-ios”: “^6.1.1”,
“cordova-plugin-cocoapod-support”: “^1.6.2”,
“cordova-plugin-email-composer”: “^0.9.2”,
“jasmine-core”: “~3.6.0”,
“jasmine-spec-reporter”: “~6.0.0”,
“karma”: “~5.2.3”,
“karma-chrome-launcher”: “~3.1.0”,
“karma-coverage-istanbul-reporter”: “~3.0.3”,
“karma-jasmine”: “~4.0.1”,
“karma-jasmine-html-reporter”: “^1.5.4”,
“protractor”: “~7.0.0”,
“ts-node”: “~9.0.0”,
“tslint”: “^6.1.3”,
“typescript”: “~4.0.3”
},

Used:
Android studio 4.1
Android 9
Build tools version 29.0.2
Java 8
Gradle 6.5.1
Problem:
App-debug.apk fontionne correctement on real device but app-release.apk stucks on splash screen:
Command:
ionic cordova build android --prod –release:

You appear to have what I call a “frankenproject” - something that contains a mishmash of various incompatible versions of things. Probably the cleanest way to do this is to create a brand-new project (I do this on every major version of framework releases) and parachute your existing app code into it.

If, however, you want to try to surgically fix this one, here are the most important problems I notice:

“ionic-angular”: “^3.9.10”,
“ionic-native”: “https://github.com/ionic-team/ionic-native/tarball/v3.5.0”,

I would definitely get rid of both of these.

Thank you very much for your answer