Why is my Nativescript-vue release apk giving errors

My nativescript-vue app works well on my device when I run tns run android but when I create the release apk and install it, the app always crushes on startup with a message "unfortunately LGIapp has stopped". LGIapp is the name of my app. It is even on the playstore but all my test users have that same error. Kindly help I am really stack. Thanks

Upvotes: 0

Views: 166

Answers (1)

Tiago A.
Tiago A.

Reputation: 2586

You need to use --bundle even in release builds. Your build command should be:

tns build android --bundle --release

I think tns will assume --bundle in the next versions. I see people stumbling in this every day... Meanwhile, don't forget that --bundle :).

Upvotes: 1

Related Questions