If you're looking for the latest compatible version of Android Studio for Windows 7, Android Studio 2024.1.2 should work without issues. I ran into trouble with Android Studio 2024.2.1, but downgrading to 2024.1.2 solved it. This version is compatible with Java JDK 18.0.1 and JRE 10.0.2.
You can download it from the archive here: Android Studio 2024.1.2 - Archived Version. Just scroll to the bottom of the page for the Windows download link.