I wanted to add Unity Ads (Advertisement Legacy) to my project. It still builds fine and everything, but like every 5 mins I get error that I need to install OpenJDK. It is really annoying. This did not happen before I installed Advertising package. Also, sometimes android resolver pops up but does nothing. I also had issues before with something called android gradle (I was not able to do notifications). I tried deleting and reinstalling JDK and SDK and so from unity hub, but it deos not detect that I deleted them (I have restored them from bin now).
When I launch build on adroid phone, ad click a button to load the ad, nothing happens, even though ads being initialized.


echo %JAVA_HOME%, wich just printed out%JAVA_HOME%...Java -versionchanges the title of the window for a second or so to the name but with " Java" at the end, and after that it prints out an empty line. I did not install any third party JDK, just the one thats installed via Unity Hub (Install Modules > Android Build Support > Java Development Kit) \$\endgroup\$