I wanted to open another activity or show native android dialog from AndroidLauncher in gdx. But when I add MyActivity and MyDialog classes, there is an error "Error: The number of method references cannot exceed 64K". But when I delete this classes everything works fine. Is there a way to open another activity in LibGDX game?
You need to use add a
Multidex support to exceed the 65k methods limit. Here's a guide to integrate
Google Play with
GDX. Search in there for the 'DEX' part and apply it to your project.
You'll be fine!