问题
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