Can’t find Google Maps class

Asked

Viewed 21 times

0

I’m trying to carry a FragmentActivity, that loads the map from Google Maps. It was working, and stopped suddenly.

I want to open it through a button, but as soon as you press Activity with this button, you get this error on the monitor.

E/dalvikvm: Could not find class Googlemap.Mapa', referenced from from method br.com.Studios.conselhoprofessional.Telas_menu_lateral.Denuncia.getLocation

And when I click the button to open:

Caused by: java.lang.Noclassdeffounderror: br.com.Best advice.Googlemap.Map at br.com.Studios.conselhoprofessional.Telas_menu_lateral.Denuncia.getLocation(Denuncia.java:59)

In Gradle has

compile 'com.google.android.gms:play-services:10.2.4'
compile 'com.google.android.gms:play-services-maps:8.4.0'

and the muldexenable is true.

How to solve this?

  • @acklay in the denounce class has : public void getLocation(View view) { Intent i = new Intent(getApplicationContext(), Map.class); startActivity(i); }

  • What’s on line 59 of the Denuncia class?

  • getLocation method.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.