Skip to content

Extend existing android app with NativeScript app crash #682

Closed
@bsnelder

Description

@bsnelder

Tell us about the problem

I tried following this guide: https://docs.nativescript.org/angular/integration-with-existing-ios-and-android-apps/extend-existing-android-app-with-ns-angular2.html to proof that we can integrate an existing android/ios application with a nativescript application. For iOS we got this to work, but when following the guide for android I got the application to compile and run om the emulator. However when I click the button to start the NativeScript application using the RuntimeHelper the application crashes.

I get the following error:

I/TNS.Native: NativeScript Runtime Version 2.4.1, commit > b6676b8
D/TNS.Native: JNI_ONLoad
D/TNS.Native: JNI_ONLoad END
D/TNS.Native: Failed to load snapshot: dlopen failed: library "libsnapshot.so" not found
D/TNS.Native: V8 version 5.2.361
D/TNS.Native: lenNodes=66036, lenNames=770833, lenValues=874228
D/TNS.Native: time=1`

After debugging the android application I found out that the problem happens somewhere within the android-runtime.

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.4.1
  • Cross-platform modules: 2.4.4
  • Runtime(s): 2.4.1

Did the error happen while the app was being constructed? (buildtime error)

No

Did the error happen while the app was executing? (runtime error)

Yes, however I don't think it even executes the javascript code yet.

Please tell us how to recreate the issue in as much detail as possible.

  1. Generate a blank Basic Activity android project using Android Studio
  2. Generate a default angular nativescript project: tns create tnsapp --ng
  3. Follow this guide: https://docs.nativescript.org/angular/integration-with-existing-ios-and-android-apps/extend-existing-android-app-with-ns-angular2.html
  4. Run the android application and press the mail button

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions