当我做tns运行ios时,一切都很好,但tns运行android只会给我这样的错误。我尝试了设备和模拟器,但是结果是一样的。
我所做的是:
错误代码:
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.
发布于 2020-08-08 08:36:52
在5月份的情况下,我已经在我的mac中安装了一个软件,它也运行着亚行。主要的问题在于它与android adb的冲突。卸载那个软件解决了这个问题
发布于 2020-10-23 00:19:22
对我来说,问题是应用程序id在以下两个方面都不同:
package.json
}
...
"nativescript": {
"id": "org.nativescript.myApp"
}
}
和nativescript.config.ts
export default {
id: 'org.nativescript.myApp',
appResourcesPath: 'App_Resources',
android: {
v8Flags: '--expose_gc',
markingMode: 'none'
}
} as NativeScriptConfig;
一定是一样的。在那之后,它工作得很好。
发布于 2020-08-18 21:19:29
当您的电缆连接到您的电话时,请尝试以下命令:
亚洲开发银行kill-server
然后重试运行NativeScript命令。
https://stackoverflow.com/questions/63290256
复制相似问题