-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extend existing android app with NativeScript app crash #682
Comments
Hi @bsnelder The mentioned article is outdated as we currently generate |
Hi @slavchev Thanks for the answer. Good to know that integrating nativescript with Android Studio will be easier from |
I would suggest to wait until the next release, but if it is critical here is a short explanation of what you have to do. You can take a look at We follow the above-described process for our test app. You can take a look of NativeScriptActivity.java and MyActivity.js for reference. In any case, manually creating bindings is a tedious process and that's why we provided a tool for that. The following issue #283 might be helpful as well. |
Hi @bsnelder, Here's a simple implementation of how to integrate NativeScript into a native application. I'll try to update the post, or create a new one if necessary, but until then you can play around and test. |
@slavchev Thanks for the explanation! Closing the issue |
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:
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:
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.
Basic Activity
android project using Android Studiotns create tnsapp --ng
The text was updated successfully, but these errors were encountered: