You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you added kotlin-stdlib as a dependency to the module where you plan to use the library. kotlin-stdlib is a small library that has great backward and forward compatibility, so it won't cause troubles for your java application.
Function1 is an analog for lambda function for Java 6.
Kotlin initially was supporting lambdas while Java 6 does not. Due to have interoperability with Java 6 this class appeared. If Java in your project has version which supports lambdas, Android Studio will suggest you simplify this to:
i tried to follow the documentation
but what is function1 and unit ? unit refer to kotlin unit and i try to test in java
The text was updated successfully, but these errors were encountered: