Android Studio: Failed to create MD5 HashFile

后端 未结 4 1070
暖寄归人
暖寄归人 2021-01-01 23:27

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 u

4条回答
  •  攒了一身酷
    2021-01-02 00:02

    I had this issue today, and after wasting an hour trying everything else mentioned I updated my Android Studio to the latest release and got a different error message that the jar file did not exist. Checking my project this error was correct, I had,

    compile files('libs/activation.jar')
    compile files('libs/mail.jar')
    compile 'com.sun.mail:android-mail:1.5.5'
    compile 'com.sun.mail:android-activation:1.5.5'
    

    But did not have a file, libs/activation.jar, for some reason this use to work fine, but stopped working today. I change it to just,

    compile 'com.sun.mail:android-mail:1.5.5'
    compile 'com.sun.mail:android-activation:1.5.5'
    

    and my build now works again. Odd, but I did try commenting out those lines before, but still got the error, so maybe updating Studio helped too, or I needed to do a combination of the above.

    Anyway problem solved and check that your jars actually existing in the libs directory.

提交回复
热议问题