javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; boundary

前端 未结 11 2460
暖寄归人
暖寄归人 2020-12-03 17:01

Currently I\'m inline of writing a code that will be listening to a directory. when the directory is updated with .apk file, I\'ll send a mail with this .apk file to a gmail

11条回答
  •  广开言路
    2020-12-03 17:42

    If it's a android project, it's highly possible the proguard stripped out unused classes by mistake, please add the following lines in the proguard file to fix the problem without modifying the code directly:

    -keep class com.sun.mail.handlers.**
    -dontwarn com.sun.mail.handlers.handler_base
    

提交回复
热议问题