Build error while creating new native script angular application - android

I have created native script angular application using npm command "ns create projectName --ng".
After running the application, getting the build error.
How to fix this issue?

Related

I want to link a library in react native version 0.70.1 but I got a error error: unknown command 'link'

I want to link a library in react native version 0.70.1 but I got a error error: unknown command 'link' after trying this command react-native link react-native-notification-sounds
Linking is automatic since React Native 0.60. So no need to run react-native link.
After installing the library -
on android, just rebuild the app
npm run android
on ios, install the pod before rebuilding the app
npx pod-install ios
npm run ios

Add NativeScript to Angular project

I am trying to create a mobile app using and existing web application I have previously developed.
For that I am using NativeScript because it can be used with an existing Angular project using a code-sharing structure.
Following the docs in their website:
https://docs.nativescript.org/angular/code-sharing/migrating-a-web-project
I convert the web project to a code-sharing structure :
ng add #nativescript/schematics
But I am getting a error in the console:
trustedSubscriber._addParentTeardownLogic is not a function
And then when I go to run it in the mobiles:
tns run android --bundle
or
tns run ios --bundle
I am getting an error (Seems that is not detecting it as a NativeScript project):
No project found at or above '/Path/to/my/project' and neither was a --path specified.

How do I use Storybook in React Native with my main project?

I have a React Native project setup using react-native init and am using Storybook to develop my components in isolation. I ran the getstorybook command inside this project and the CLI generated a storybook directory with all the necessary files, as described in the Storybook docs.
When I run npm run storybook command followed by react-native run-android, I'm able to view the stories on my emulator. Now if I need to run my main app (not storybook, but the one which was generated by the react-native init command), I have to run npm run start followed by react-native run-android.
Is there a way to not have to build the app every time I switch from Storybook to my main app? Am I missing something obvious here?
Thanks in advance!

How to fix React Native error when first launch

How to fix this error when run android emulator?
I create a first application using React Native. But when I try to run this command react-native run-android I got some error in my command line :
This app is default created app from react native CLI

Building phonegap android application on Mac

I am trying to build a phonegap application on my Mac and im thinking i have some errors in my Android setup. When I do phonegap build android im getting the following error
ERROR building one of the platforms: Error code 1 for command: /Users/un/Documents/Github/myapp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/un/Documents/Github/myapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/un/Documents/Github/myapp/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/un/Documents/Github/myapp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
In my bash profile.rc i've added
export ANDROID_HOME=/usr/local/opt/android-sdk
export ANT_HOME=/usr/local/Cellar/ant/bin
The app works fine in iOS.
try to remove the platform and add again
cordova platform remove ios
cordova platform add ios
`

Categories

Resources