首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Nativescript tns运行android (应用程序不在设备上运行)

Nativescript tns运行android (应用程序不在设备上运行)
EN

Stack Overflow用户
提问于 2020-08-06 19:08:23
回答 8查看 2.3K关注 0票数 7

当我做tns运行ios时,一切都很好,但tns运行android只会给我这样的错误。我尝试了设备和模拟器,但是结果是一样的。

我所做的是:

  • 重新安装平台,node_module,钩子。tns医生在webstorm上没有错误完成problem
  • running)
  • 清除缓存(android项目没有使用tns创建新的{N}文件,但在我的
  • app.gradle文件上创建了相同的错误occured
  • putting 'applicationId =“org.nativescript.fagck_app”)。多次重新启动PC/亚行。ran ` `tns debug
  • android

错误代码:

代码语言:javascript
运行
复制
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.
EN

回答 8

Stack Overflow用户

回答已采纳

发布于 2020-08-08 08:36:52

在5月份的情况下,我已经在我的mac中安装了一个软件,它也运行着亚行。主要的问题在于它与android adb的冲突。卸载那个软件解决了这个问题

票数 1
EN

Stack Overflow用户

发布于 2020-10-23 00:19:22

对我来说,问题是应用程序id在以下两个方面都不同:

package.json

代码语言:javascript
运行
复制
}
  ...
    "nativescript": {
    "id": "org.nativescript.myApp"
  }
}

nativescript.config.ts

代码语言:javascript
运行
复制
export default {
  id: 'org.nativescript.myApp',
  appResourcesPath: 'App_Resources',
  android: {
    v8Flags: '--expose_gc',
    markingMode: 'none'
  }
} as NativeScriptConfig;

一定是一样的。在那之后,它工作得很好。

票数 6
EN

Stack Overflow用户

发布于 2020-08-18 21:19:29

当您的电缆连接到您的电话时,请尝试以下命令:

亚洲开发银行kill-server

  • sudo start-server

  • sudo亚行重新连接

然后重试运行NativeScript命令。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63290256

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档