NativeScript UI自动完成功能未编译

时间:2018-12-18 04:06:09

标签: nativescript angular2-nativescript nativescript-angular

在我的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)   失败:构建失败,并出现异常。

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

1 个答案:

答案 0 :(得分:2)

删除node_modulesplatformshooks文件夹和package-lock.json文件 运行

npm i

重建项目->

tns run android

tns build android