NativeScript tns build failed after adding nativescript-ui-dataform plugin

我只是一个虾纸丫 提交于 2019-12-24 11:08:42

问题


I added plugin nativescript-ui-dataform to my project with command,

tns plugin add nativescript-ui-dataform

I checked package.json after install and noticed "nativescript-ui-dataform": "^3.10.0" was added to the project.

When I build project with tns build android, I get following exception,

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)

and build failed with an error,

FAILURE: Build failed with an exception.

any suggestion on above error, why does this error occur?


回答1:


It seems to be the problem with using right dependent version for nativescript-ui-autocomplete. I'm sure the versions below are compatible to each other as it's being used in the latest Playground app as of today.

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



来源:https://stackoverflow.com/questions/54511068/nativescript-tns-build-failed-after-adding-nativescript-ui-dataform-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!