Gradle Build is successful but when I try to run my app, I get this error:
Error:Your app has more methods references than can fit in a single dex file. See https://developer.android.com/tools/building/multidex.html
I got this after I implemented 'Sign-in using Google Account' feature to my app.
Why am I getting this? I don't understand the problem in order to fix this. Do any of you have a solution for this?
EDIT
I Followed the steps, however it's showing another error:
Copying resources from program jar [/Users/Earthling/AndroidStudioProjects/GoogleTestProject/app/build/intermediates/transforms/jarMerging/debug/jars/1/1f/combined.jar] :app:transformClassesWithDexForDebug FAILED Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3