I am new to Android Studio and I don't have that much experience in Java.
I installed the latest Android Studio version on a MacBook and everything worked fine (I also ran simple apps and worked flawlessly) until I had to use the class DriverManager to connect to a mysql database. When the program tries to call the DriverManager.getConnection() it pauses endlessly without throwing exceptions.
So I opened the class DriverManager and found out it had errors. In particular it's trying to do these two imports:
import dalvik.system.VMStack;
import sun.reflect.CallerSensitive;
but both classes do not exist in the specified path nor anywhere else.
I tried re-installing Android Studio and downloading many different versions of the SDK from the SDK manager but nothing solves the problem and I cannot find anything on the web. I only read somewhere around that VMStack is deprecated.
What am I doing wrong? Thanks.