I am not able to resolve the issue javafx. When I import this package it is showing can't resolve javafx.util.pair
. while I have configured properly in gradle its working in other's system.
JavaFX (OpenJFX) In 2018, Oracle decided to decouple JavaFX from the JDK. JavaFX lives on as OpenJFX, an OpenJDK subproject. As JavaFX is no longer part of OpenJDK, AdoptOpenJDK does not bundle it with its binaries.
This is because javafx.util.Pair
is not a part of OpenJDK which is distributed and used by Android Studio. You need to use Oracle JDK which include JavaFX where it contains javafx.util.Pair
. Try to change your Android Studio JDK from your setting.
Or alternatively, you can use Map.Entry or using android.util.Pair
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With