0
\$\begingroup\$

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?

\$\endgroup\$
1
  • \$\begingroup\$ If you want to show native dialogs you should look into the "native-dialogs" extention for Gdx. \$\endgroup\$
    – Charanor
    Jan 16, 2017 at 10:51

1 Answer 1

1
\$\begingroup\$

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.

https://chandruscm.wordpress.com/2015/12/30/how-to-setup-google-play-game-services-in-libgdx-using-android-studio/

You'll be fine!

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .