Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] build – Nativescript tns run android (application is not running on device)

Posted on November 14, 2022

Solution 1 :

The problem for me was that the Application id was different in both:

package.json

}
  ...
    "nativescript": {
    "id": "org.nativescript.myApp"
  }
}

And nativescript.config.ts

export default {
  id: 'org.nativescript.myApp',
  appResourcesPath: 'App_Resources',
  android: {
    v8Flags: '--expose_gc',
    markingMode: 'none'
  }
} as NativeScriptConfig;

It must be the same.
After that, it works just fine.

Solution 2 :

Try this commands while your cable is connected to your phone:

  1. adb kill-server
  2. sudo adb start-server
  3. sudo adb reconnect

then retry running NativeScript command.

Solution 3 :

try with changing the application ID to “com.example.myapp” where example is your domain name.

Solution 4 :

In may case, i have installed a software in my mac that also runs adb. The main prob really was its conflicting with the android adb. uninstall that software solved the problem

Solution 5 :

in my case, this did not work due to an overflow of the device’s memory. Clean memory and try install again

Solution 6 :

I faced the same problem:

>>> ns run android
(...)
Project successfully built.
The build result is located at: /Users/krzysztof/dev/surfcloud-mobile-apps/bizApp/platforms/android/app/build/outputs/apk/debug/app-debug.apk
Installing on device ce12171cd1a920bd0d...
Successfully installed on device with identifier 'ce12171cd1a920bd0d'.
Application app.surfcloud.bizApp is not running on device ce12171cd1a920bd0d.
This issue may be caused by:
    * crash at startup (try `tns debug android --debug-brk` to check why it crashes)
    * different application identifier in your package.json and in your gradle files (check your identifier in `package.json` and in all *.gradle files in your App_Resources directory)
    * device is locked
    * manual closing of the application
Unable to apply changes on device: ce12171cd1a920bd0d. Error is: Application app.surfcloud.bizApp is not running.

In my case the solution was to change:

<activity android_exported="false" (...)/>

to:

<activity android_exported="true" (...)/>

in AndroidManifest.xml. After setting exported to true the app launches normally.

READ  [ANSWERED] react native - Error: Can't load file from uriString when upload audio file Android
Powered by Inline Related Posts

Solution 7 :

For me, it was just that I had a previous version of the app already installed on the device. Uninstalling that fixed the problem.

Solution 8 :

In my case, I ran out of disk space on my phone … tns showed it connected to my phone and starting to install it, but then crashed with the same msg as above.

So I’ve started to remove apps and pictures, and it’s just worked.

Because that error appeared on a brand new project (w/o any changes) and also to an app that was already done and I know it was working as it was installed already on my phone …

Problem :

When i do tns run ios, all is fine but tns run android just gives me error like this. I tried both device and emulator but the same result.


i have done:

  • reinstall platforms,node_module,hooks. tns doctor has no error done
  • clearing cache on webstorm(android studio project has no problem
  • running) created new {N} file with tns create but same error occured
  • putting ‘applicationId = “org.nativescript.fagck_app”‘ on my
  • app.gradle file. restarted PC/adb multiple times. ran `tns debug
  • android –debug-brk` but still same error occured
  • reinstall brew jdk8

error code:

Installing on device 2744b499...
Successfully installed on device with identifier '2744b499'.
Application org.nativescript.fagck_app is not running on device 2744b499.
This issue may be caused by:
        * crash at startup (try `tns debug android --debug-brk` to check why it crashes)
        * different application identifier in your package.json and in your gradle files (check your identifier in `package.json` and in all *.gradle files in your App_Resources directory)
        * device is locked
        * manual closing of the application
Unable to apply changes on device: 2744b499. Error is: Application org.nativescript.fagck_app is not running.

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress