mufti nurul azmi
mufti nurul azmi

Reputation: 3

Android Google Map : Error in android google map

I used google map in android version new 2.2 and I get same messages error in messages gradle build.

and event log

I don't know where is the problem. Can anyone help me?

Upvotes: 0

Views: 203

Answers (1)

antonio
antonio

Reputation: 18262

Your project is exceeding 65536 methods. This is likely because you are importing the whole Google Play Services library doing

dependencies {
    compile 'com.google.android.gms:play-services:9.6.1'
}

You can import only the modules that you are going to use. If you are only using Google Maps you can change your Play Services dependency to be

dependencies {
    compile 'com.google.android.gms:play-services-maps:9.6.1'
}

Upvotes: 1

Related Questions