Error when running livesync on device - angular2-nativescript

I'm having trouble running sync on my iOS device using NativeScript with Angular2.
The following command works well:
tns run ios --device <device_id>
But when I try to run like this:
tns livesync ios --watch --device <device_id>
I get the following error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0xd74aab -[TNSRuntime executeModule:referredBy:]
2 0xac487 main
registered for type RadSideDrawer.
3 0x1d0af50b <redacted>
JavaScript stack trace:
1 #file:///app/tns_modules/ui/core/dependency-observable.js:73:28
JavaScript error:
file:///app/tns_modules/ui/core/dependency-observable.js:73:28: JS ERROR Error: Property showOverNavigation already
The showOverNavigation is from the sidedrawer plugin that I'm using. But I have found other people on having the same kind of issue with other plugins.

I had the same error and I solve running the command:
tns run ios --release
with only the real device connected, that makes the app works without error.
Also in the new version of tns the command livesynch is now replaced by the 'run' command.
But with the '--release' part I cannot have all the console.log in the terminal visible.

Related

what is the slution to this problem Failed to launch Pixel 2 API 30: Error: Emulator didn't connect within 60 seconds

I have a problem with the emulator; however, I have tried everything to fix it, but nothing has worked.
I created an emulator, and I did wipe its data and restart Android Studio, and HAXM is also installed.
and I'm using Flutter paltform in VS code BTW!
I did try this: adb kill-server, and VT-X is enabled and every SDK tool is installed!
and shows the following error message: Failed to launch Pixel 2 API 30: Error: Emulator didn't connect within 60 seconds

Flutter gives "FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations" error when I try to run without debugging

When I try running my app without debugging. The app gives me the following error and proceeds with the installation(I'm using my phone via USB Debugging to test my app).
Launching lib\main.dart on vivo 1901 in debug mode...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_analytics-9.1.10\android\src\main\java\io\flutter\plugins\firebase\analytics\FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
√ Built build\app\outputs\flutter-apk\app-debug.apk.
And when I enter my registered details(I have already created an account on my app) on the login page and click login , it gives me an authentication error.
The error is caused due to outdated packages in your flutter project.
To solve the errors, do the following :
Step 1: Run the command flutter pub outdated in the terminal of your development environment. This command will find and display the list of packages that can be updated.
Step 2: Run the command flutter pub upgrade in the terminal of your development environment. This command will update the outdated packages.

Error when trying to launch the uiautomatorviewer

I'm trying to launch the uiautomatorviewer to inspect elements on my mobile device, but when I execute it into the command line, the system returns the message below:
-Djava.ext.dirs=..\lib\x86_64;..\lib is not supported. Use -classpath instead.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit
Looks like some version problem, but I don't know how to resolve it.
Any ideas?

Flutter sample build issue

I am getting this error when trying to run the sample first_app in flutter after opening it in VS CODE.
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
/Users/ts/Documents/Dev/first_app/build/ios/Debug-iphonesimulator/Runner.app: resource fork, Finder information, or similar
detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Could not build the application for the simulator.
Error launching application on iPhone 8.
Does anyone know what could be causing this? Thanks!

Issue while running the application on Device

I am getting following error while running the application on the device:
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
IOS version - 4.2.1
Any idea what could be wrong?
The issue was that while importing the external library I checked in "Copy" option. We should not do that.