0

Hello to everyone and thanks in advance,although this question might be repeated but It is been more than 5 hours that I am not able to solve this problem, everything was working smoothly and fine , i din't face any bug or error before, I just don't know where this error came from ?? I closed the project when it was working fine, after opening it again , saw this error. execution failed

I have searched a lot of websites to find the solution but tried everything,none of them worked for me, this problem has come out of no where. Please help me.

Here is my build.gradle(Module:app) code. enter image description here

enter image description here

and here is the build.gradle(project level) of my project. enter image description here

as I mentioned,this code was perfectly working and even that time i uploaded the project copy to Google-Drive, after importing that too i face this issue.

Niamatullah Bakhshi
  • 1,445
  • 16
  • 27
  • Take a look at this https://developer.android.com/studio/build/multidex.html. For android prior to 5 you need to manage apk with a memory addressing more than 65k – shadowsheep Jan 30 '18 at 22:19
  • @shadowsheep thanks for your comment but I have solved the question and i suggest you to look at it once to understand more. – Niamatullah Bakhshi Feb 03 '18 at 19:00

1 Answers1

0

After 2 days of struggling, I have finally solved this problem.

The problem mainly shows that the External libraries are mixed for this reason it might create bug and unsuccessful build. For more details, please check my answer in:
Android Studio 3.0 Execution failed for task: unable to merge dex

I don't wanna delete the question because the solution which has worked for me may not work for some others, but trying every solution is a better way to understand the problems.

Pang
  • 9,564
  • 146
  • 81
  • 122
Niamatullah Bakhshi
  • 1,445
  • 16
  • 27