【问题标题】:How to run an ignite app in an android device connected to laptop with a cable?如何在通过电缆连接到笔记本电脑的 android 设备中运行 ignite 应用程序?
【发布时间】:2020-03-21 09:51:48
【问题描述】:

我正在尝试在我的安卓手机中运行一个 ignite 应用程序。我运行了这个命令:

npx react-native run-android

但它给出了这些错误:

info 运行 jetifier 将库迁移到 AndroidX。您可以使用“--no-jetifier”标志禁用它。 Jetifier 找到 1226 个文件来转发-jetify。使用 2 名工人... info 正在启动 JS 服务器... info 正在安装应用程序...

FAILURE:构建失败并出现异常。

  • 在哪里: 脚本 'E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules@react-native-community\cli-platform-android\native_modules.gradle' 行:206

  • 出了什么问题: 评估脚本时出现问题。

    调用 [node, E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js, config] 时出现异常。错误信息:groovy.json.JsonException: 无法确定当前字符,它不是字符串、数字、数组或对象

    当前读取的字符是 'E',int 值为 69 无法确定当前字符,它不是字符串、数字、数组或对象 行号 1 索引号 0 错误:EPERM:不允许操作,scandir 'E:/BOP/react-native projects/SmartCope-git.bop/SmartCope March 18/smartcope-frontend/android/app/build/intermediates/signing_config/debug/out/signing- config.json' 在 Object.readdirSync (fs.js:921:3) 在 GlobSync._readdir (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\ sync.js:288:41) 在 GlobSync._readdirInGlobStar (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:267:20) 在GlobSync._readdir (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:276:17) 在 GlobSync._processReaddir (E:\BOP\ react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:137:22) 在 GlobSync._process (E:\BOP\react-native projects\SmartCope-git. bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:132:10) 在 GlobSyn c._processGlobStar (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:380:10) 在 GlobSync._process (E:\BOP\ react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:130:10) 在 GlobSync._processGlobStar (E:\BOP\react-native projects\SmartCope-git. bop\SmartCope 3 月 18 日\smartcope-frontend\node_modules\glob\sync.js:383:10) 在 GlobSync._process (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope 3 月 18 日\smartcope-frontend \node_modules\glob\sync.js:130:10) ^。输出:错误:EPERM:不允许操作,scandir 'E:/BOP/react-native projects/SmartCope-git.bop/SmartCope March 18/smartcope-frontend/android/app/build/intermediates/signing_config/debug/out/在 GlobSync._readdir (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\ glob\sync.js:288:41) 在 GlobSync._readdirInGlobStar (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:267:20 ) 在 GlobSync._readdir (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:276:17) 在 GlobSync._processReaddir (E:\ BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:137:22) 在 GlobSync._process (E:\BOP\react-native projects\SmartCope- git.bop\SmartCope 3 月 18 日\smartcope-frontend\node_modules\glob\sync.js:132:10) 在GlobSync._processGlobStar (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:380:10) 在 GlobSync._process (E:\BOP\ react-native projects\SmartCope-git.bop\SmartCope March 18\smartcope-frontend\node_modules\glob\sync.js:130:10) 在 GlobSync._processGlobStar (E:\BOP\react-native projects\SmartCope-git. bop\SmartCope 3 月 18 日\smartcope-frontend\node_modules\glob\sync.js:383:10) 在 GlobSync._process (E:\BOP\react-native projects\SmartCope-git.bop\SmartCope 3 月 18 日\smartcope-frontend \node_modules\glob\sync.js:130:10)

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。

  • 通过https://help.gradle.org获得更多帮助

在 5 秒内构建失败

错误 无法安装应用程序。确保您已设置 Android 开发环境:https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment。使用 --verbose 标志运行 CLI 以获取更多详细信息。 错误:命令失败:gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

如何解决这些错误并在通过电缆连接到笔记本电脑的手机中运行 ignite 应用程序?

【问题讨论】:

    标签: react-native


    【解决方案1】:

    谈到与 Ignite 集群的连接,很可能瘦客户端是移动设备可用的唯一选项:https://apacheignite.readme.io/docs/thin-clients

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-18
      • 1970-01-01
      • 2021-06-26
      • 2021-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多