NativeScript / NativeScript

⚡ Empowering JavaScript with native platform APIs. ✨ Best of all worlds (TypeScript, Swift, Objective C, Kotlin, Java, Dart). Use what you love ❤️ Angular, Capacitor, Ionic, React, Solid, Svelte, Vue with: iOS (UIKit, SwiftUI), Android (View, Jetpack Compose), Dart (Flutter) and you name it compatible.
https://nativescript.org
MIT License
24.19k stars 1.64k forks source link

Android release build crashes on opening #7820

Closed cerealexx closed 5 years ago

cerealexx commented 5 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

Describe the bug Tns run android works fine. tns build android --key-store-path --key-store-password --key-store-alias --key-store-alias-password --release builds fine. Then on opening shows during half a second the splash screen and then crashes.

To Reproduce Build release apk with tns build android --key-store-path --key-store-password --key-store-alias --key-store-alias-password --release. Install and open the app.

Expected behavior Not crashing.

Additional context I guess this wont help to know what's happening, but crashing version is available in Play Store: https://play.google.com/store/apps/details?id=com.aboueats.meyo

fpaaske commented 5 years ago

Try to connect your device to the computer and run adb -d logcat in the command line, then start start the app on the device. Maybe it gives some hint to what's wrong.

cerealexx commented 5 years ago

@mrpaaske no hint... just:

09-16 11:01:35.496  5739  7900 W ActivityManager: crash : com.aboueats.meyo,0
09-16 11:01:35.496  5739  7900 W ActivityManager:   Force finishing activity com.aboueats.meyo/com.tns.NativeScriptActivity
09-16 11:01:35.551  5739  9392 I ActivityManager: Process com.aboueats.meyo (pid 11537) has died: vis  TOP (557,2659)
cerealexx commented 5 years ago

I found the problem in a dependency... weird that NS didn't throw any errors though...

iMarwan-k commented 5 years ago

I found the problem in a dependency... weird that NS didn't throw any errors though...

Hi there, what dependency that cause this, I'm having the same issue right now

cerealexx commented 5 years ago

In my case it was nativescript-ngx-slides