Getting jdk version error with install-expo-modules@latest and reactnative@0.65

I am getting jdk 11 error because I am using jdk8 with react native 0.65. I installed expo using install-expo-modules@latest. Is there any way to downgrade jdk version for expo?