A Java project that my Android studio project depends on is written in Java 17, while my AS project uses Java 11, I simply copied that whole project in AS, but it just gives me a bunch of errors, which is understandable because it's written in a different version and hence uses slightly different syntax such as switch expressions which does not exist in Java 11, is their a way for me to still include this project in my own.
For context that project is written by a friend and is not written as a library but more like a standalone console application, I thought I could just remove the main function and have all the features still available to me.
For more context that project is a maths library written entirely in Java and has no external dependencies that's why I thought I would've no problem simply copying that whole project in my own.