question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nativescript V5 Crash on Start (Blank Template)

See original GitHub issue
tns create myApp (Hello World and Plain Javascript)
cd myApp
tns debug android

Works fine.

tns plugin add nativescript-plugin-firebase

Copy over Google services files to iOS and Android

tns debug android

Crashes on boot.

packages.json

{
  "nativescript": {
    "id": "org.nativescript.myApp",
    "tns-android": {
      "version": "5.0.0"
    },
    "tns-ios": {
      "version": "5.0.0"
    }
  },
  "description": "NativeScript Application",
  "license": "SEE LICENSE IN <your-license-filename>",
  "repository": "<fill-your-repository-here>",
  "dependencies": {
    "nativescript-plugin-firebase": "^7.4.4",
    "nativescript-theme-core": "~1.0.4",
    "tns-core-modules": "~5.0.2"
  },
  "devDependencies": {
    "nativescript-dev-webpack": "~0.18.0"
  },
  "readme": "NativeScript Application"
}

app.gradle

android {  
  defaultConfig {  
    generatedDensities = []
    multiDexEnabled true
  }  
  aaptOptions {  
    additionalParameters "--no-version-vectors"  
  }  
} 


dependencies {
  compile 'com.android.support:multidex:1.0.3'
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
EddyVerbruggencommented, Dec 9, 2018
1reaction
Skintillioncommented, Dec 9, 2018

Found issue.

Admob meta data was missing from the Android manifest XML. Incase anyone else has this issue. It just crashes without any error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nativescript application crash on start up in android device
I am developed android and iOS application using Nativescript. Now I started the project migration process. I got the crash issue.
Read more >
tns preview ERROR in nativescript.config.ts:1:10 ... - GitHub
tns create HelloWorld --template tns-template-blank-ng ... This issue may be caused by: * crash at startup (try `tns debug android --debug-brk` to check...
Read more >
@nativescript/template-blank-ng - npm
Blank template for NativeScript apps using Angular. Latest version: 8.4.1, last published: 18 days ago. Start using ...
Read more >
NativeScript 8.1 Released
NativeScript 8.1 is a bug fix and stabilization release with a few nice long desired additions. This release comes off the tails of ......
Read more >
@nativescript/types | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found