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:
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.
                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.
Try this commands while your cable is connected to your phone:
then retry running NativeScript command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With