I have imported a GDX project to Android Studio using Gradle. Import process was successful, but it gives an error for android.os.*, when I try to import it.
Useful, this is like going to the doctors and specifying you are in severe pain, yet don’t specify where.
So, the error?
Do you have the Android SDK setup in eclipse?
Have you downloaded the Android API from the Android SDK Manager?
Yes, I have tested some codes, without libgdx, it is working and running. The problem is, when I try to import standard android classes to a libgdx project. So I think SDK is correct.
It cannot resolve android.os.* imports.
Same problem in Adroid Studio…
Regardless of IDE: How are you setting your classpath? What’s on your classpath? What happens when you add the Android sdk to your classpath?