Android studio (Api google maps) Api

0

Hello, I'm doing a job in which I must occupy an api of google maps , I already got my api and added it to my code but whenever I want to run it on my cell phone or machine it appears error:

  

Error: Execution failed for task ': app: transformClassesWithDexForDebug'.   com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536

I was researching and I added the multiDexEnable but it opens on the screen in black and closes, it should be noted that use the google maps template that comes in android studio , I add my api where I have to put it on, I run it and it marks me that error.

I hope you can help me.

    
asked by Arturo Vera 27.10.2016 в 21:31
source

1 answer

0

From what I see, you have a problem with Multidex. Android supports a certain amount of memory for libraries, so is its architecture. When using google maps libraries and in general when using the play-services libraries, it is necessary to enable the multidex option.

Review, my solution for this case: link

Here is the official information. link

If you have questions, follow the thread of this answer

PS: Try to write better:)

    
answered by 27.10.2016 / 22:18
source