【发布时间】:2018-12-18 04:06:08
【问题描述】:
在我的 nativescript 应用程序中,我遇到了关于使用 nativescript ui 自动完成的问题。我将我的移动应用程序编译为 android 应用程序。报错如下
<======-------> 50% CONFIGURING [3s]
<====---------> 35% EXECUTING [13s]
<======-------> 51% EXECUTING [20s]
线程“主”java.lang.ClassNotFoundException 中的异常:类:com.telerik.widget.autocomplete.ShowSuggestionListListener 在 org.nativescript.staticbindinggenerator.Generator.getClass(Generator.java:776) 在 org.nativescript.staticbindinggenerator.Generator.collectInterfaceMethods(Generator.java:703) 在 org.nativescript.staticbindinggenerator.Generator.getPublicApi(Generator.java:227) 和 0 个错误。监视文件更改。 在 org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:342) 在 org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:133) 在 org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:172) 在 org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:90) 在 org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:66) 在 org.nativescript.staticbindinggenerator.Main.main(Main.java:47) FAILURE:构建失败并出现异常。
What went wrong:
Execution failed for task ':app:runSbg'.
Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/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 25s
10:34:24 - Found 0 errors. Watching for file changes.
Unable to apply changes on device: 192.168.80.101:5555. Error is: Command ./gradlew failed with exit code 1.
Executing after-watch hook from /home/andre/nativescript/TigaRoda/hooks/after-watch/nativescript-dev-typescript.js
Stopping tsc watch
Executing after-watch hook from /home/andre/nativescript/TigaRoda/hooks/after-watch/nativescript-dev-webpack.js
Stopping webpack watch
【问题讨论】:
-
您使用的是哪个版本的 {NS} 和自动完成功能?
-
我使用的是 Nativescript 5.1.0
-
你检查过 nativescript-autocomplete 版本是否是最新的吗? nativescript-autocomplete 也可能是 node_modules 本身,尝试删除它
-
autocomplete和tns核心模块的版本是多少?
-
您能否检查一下 package-lock.json 文件,看看安装了哪个版本的
nativescript-ui-autocomplete?
标签: nativescript angular2-nativescript nativescript-angular