Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Failed to create MD5 HashFile

I am creating a simple android application... I ran into some kind of trouble when I updated gradle when I launched Android Studio and it prompted me too.

Upon the update completing I receive the following error:

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

Failed to create MD5 hash for file '/Users/damenTomassi/AndroidStudioProjects/AstraeaDemo/app/src/main/res/libs/gson-2.3.1.jar'.

I used to have the GSON library in my project, however I no longer needed it so I removed it...

Does anyone have any suggestions?

like image 569
Damen Tomassi Avatar asked Apr 05 '17 03:04

Damen Tomassi


2 Answers

I could solve this issue by deselecting Instant Run. You can do this by going to

File->settings->build,execution,deplyment-> deselect instant run.

like image 156
Rakshitha B R Avatar answered Nov 05 '22 21:11

Rakshitha B R


Try this

Step 1: Remove this compile files('lib/gson-2.3.1.jar') from Your build.gradle File

Step 2: Build-> Clean Project

like image 24
RAJESH KUMAR ARUMUGAM Avatar answered Nov 05 '22 21:11

RAJESH KUMAR ARUMUGAM