I use libgdx with its java based project generator application. So I use Gradle to import project into Eclipse(so I have 2 projects imported: core and android). After that I can not import android.os.Bundle, because it cannot be resolved. I should import also this class togethet with other libgdx specific packages.
I have also tried to fix Build targets, but I think this option isn't exists for this project.
This depends if you are trying to reference the package in the core project or the android project. You can't/shouldn't import the 'Android X.X' library in the core LibGDX project, because all platforms can't use it. Make classes in the mygame-android project that are only referenced in the core project if
Gdx.app.getType() == ApplicationType.Android;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With