-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function2 not found #18
Comments
Seems like you're using it from Java. Please check below sample code |
Please share the full source code, So I can help you to fix the syntax error |
` import android.app.Activity; import androidx.annotation.NonNull; import android.view.LayoutInflater; import com.github.dhaval2404.colorpicker.ColorPickerDialog; public class ColorPickerFragment extends Fragment {
}` |
Summary
while using ColorPicker, there is an error which says : cannot access Function2 on .setOnColorListener(new ColorListener())
Code to reproduce
*frgmnts\ColorPickerFragment.java:94: error: cannot access Function2
.setColorListener(new ColorListener() {
^
class file for kotlin.jvm.functions.Function2 not found
Installation method
implementation from Github repo.
SDK version
Gradle version: 4.2.1
The text was updated successfully, but these errors were encountered: