Anko: View.onClick() extension method missing in Anko 0.10.1?

Created on 17 Jun 2017  路  4Comments  路  Source: Kotlin/anko

The View.onClick() extension method located in Sdk15ListenersKt class in Anko 0.9.1 is missing in Anko 0.10.1, and it has not been announced that it is going to be deleted. In fact, it's still announced in on the main Anko page: https://github.com/Kotlin/anko, so I guess it was not removed on purpose, but maybe rather moved to some other artifact?

Most helpful comment

From the releases page under 0.10 I find:

DSL listeners moved to anko-< platformName >-listeners artifacts (e.g. anko-sdk25-listeners);

That helped me.

All 4 comments

From the releases page under 0.10 I find:

DSL listeners moved to anko-< platformName >-listeners artifacts (e.g. anko-sdk25-listeners);

That helped me.

hey
I don't understand what's that mean?

DSL listeners moved to anko-< platformName >-listeners artifacts (e.g. anko-sdk25-listeners);

@arezaee it means you should update your gradle file accordingly.

image

@CliffBrown
thank you so much

Was this page helpful?
0 / 5 - 0 ratings