添加nativescript-ui-dataform插件后,NativeScript TNS构建失败

时间:2019-02-04 06:24:03

标签: android angular telerik nativescript nativescript-angular

我使用命令向我的项目添加了插件nativescript-ui-dataform

tns plugin add nativescript-ui-dataform

安装后我检查了package.json,发现"nativescript-ui-dataform": "^3.10.0"已添加到项目中。

当我使用tns build android构建项目时,出现以下异常情况,

Exception in thread "main" java.lang.ClassNotFoundException: Class:
com.telerik.widget.autocomplete.ShowSuggestionListListener
        at org.nativescript.staticbindinggenerator.Generator.getClass(Generator.java:776)
        at org.nativescript.staticbindinggenerator.Generator.collectInterfaceMethods(Generator.java:703)
        at org.nativescript.staticbindinggenerator.Generator.getPublicApi(Generator.java:227)
        at org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:342)
        at org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:133)
        at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:172)
        at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:90)
        at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:66)
        at org.nativescript.staticbindinggenerator.Main.main(Main.java:47)

并且构建失败并显示错误

FAILURE: Build failed with an exception.

关于上述错误的任何建议,为什么会发生此错误?

1 个答案:

答案 0 :(得分:1)

nativescript-ui-autocomplete使用依赖于权利的版本似乎是一个问题。我确定下面的版本相互兼容,因为到目前为止,最新版本的Playground应用中都在使用这些版本。

npm i nativescript-ui-dataform@3.9.1 nativescript-ui-autocomplete@3.10.3 --save