@AhmadMahmoudSaleh You can get rid of error "Unresolved reference to version catalog" by simply enclosing libs in parentheses - (libs). javaClass. This way you will force the compiler to recalculate the type from scratch, rather than bypass the error.