android - 我在创建运行项目时遇到了一些错误,但没有运行该项目
问题描述
我不明白发生了什么,我不知道解决方案是什么 项目未成功运行
我在命令中运行项目
tns cloud run android --accountId=1 --bundle --watch
并显示此错误
grandle_home 环境设置和 ubuntu 系统上设置的每个环境
Gradle build...
Exception in thread \"main\"
java.io.IOException: Couldn't find '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing \"node '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging\".
\tat org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
\tat org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
\tat org.nativescript.staticbindinggenerator.Main.main(Main.java:48)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:runSbg'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace
option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED
in 13s
Command ./gradlew failed with exit code 1
Exception in thread \"main\" java.io.IOException: Couldn't find '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing \"node '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging\".
\tat org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
\tat org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
\tat org.nativescript.staticbindinggenerator.Main.main(Main.java:48)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:runSbg'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
Command ./gradlew failed with exit code 1
bc_6V1Cl1Z7Xwv5wYvEdQ
Unable to apply changes on device: 4c3826b60805. Error is: Build failed. Reason is: 'Build failed with error code 2'. Additional information: [00:00:15.407] [WARN] Exception in thread "main"
[00:00:15.407] [WARN] java.io.IOException: Couldn't find '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing "node '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging".
at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:48)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:runSbg'.
> Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace
[00:00:15.407] [WARN] option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED
[00:00:15.409] [WARN] in 13s
[00:00:15.782] [WARN] Command ./gradlew failed with exit code 1
[00:00:16.277] [ERROR] Exception in thread "main" java.io.IOException: Couldn't find '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/sbg-bindings.txt' bindings input file. Most probably there's an error in the JS Parser execution. You can run JS Parser with verbose logging by executing "node '/mnt/storage/builds/_/b8da0e8899c968eb9ad76278a4fda4fec7160c46/5.3.4/5.3.1/toh6/platforms/android/build-tools/jsparser/js_parser.js' enableErrorLogging".
at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:126)
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:48)
FAILURE: Build failed with an exception.
解决方案
推荐阅读
- asp.net-core - 如何从 ActionFilter 重定向到 Asp.net Core 2.2 中的另一个动作或路由?
- javascript - 用于 Visual Studio 代码编辑器的 Javascript IntelliSence
- android - 三星 Galaxy S8 导航栏覆盖固定位置 div
- java - 从数组中拉取范围
- javascript - JSON.stringify 在 post 中发送数组时无法正常工作并插入数据库
- c++ - 如何使用滑块 qcolor 更改饱和度和值?
- java - 为什么 Eclipse 抱怨该项目指定编译器合规性 1.8 但使用了 JRE 11?
- javascript - 为什么排序数组中的中间元素是多数元素?
- javascript - Implement RRule using javascript rrule.min.js
- python - 验证正则表达式中的单个点和空格