Android Studio有errore白色的mail.jar和additionnal.jar和activation.jar [英] Android Studio have errore white mail.jar and additionnal.jar and activation.jar

查看:1342
本文介绍了Android Studio有errore白色的mail.jar和additionnal.jar和activation.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将项目从Eclipse导入到Android Studio
,但我的应用程序不会运行:

 导致by:java.lang.VerifyError:拒绝类javax.mail.internet.MimeMessage,因为编译时验证失败(javax.mail.internet.MimeMessage的声明出现在/data/data/com.ipAndroid.Settinge/files中/instant-run/dex/slice-slice_4-classes.dex)
在com.ipAndroid.Settinge.Mail.send(Mail.java:120)

我的项目发送gmail

解决方案

问题源自于android工作室。这是我如何解决它(禁用热插拔即时运行)



https://sites.google.com/a/android.com/tools/tech-docs/instant-run



打开设置或首选项对话框。
导航到构建,执行,部署>即时运行。
取消选中重新启动活动代码更改旁边的框。 (第一个复选框)



(根据这里发现的即时运行注释:拒绝类,因为编译时验证失败Android


I have imported my project from Eclipse to Android Studio but my app won't run:

 Caused by: java.lang.VerifyError: Rejecting class javax.mail.internet.MimeMessage because it failed compile-time verification (declaration of 'javax.mail.internet.MimeMessage' appears in /data/data/com.ipAndroid.Settinge/files/instant-run/dex/slice-slice_4-classes.dex)
                                                                            at com.ipAndroid.Settinge.Mail.send(Mail.java:120)

my project send gmail

解决方案

The problem stems from android studios. Here is how I was able to fix it (disable the hot swap instant run)

https://sites.google.com/a/android.com/tools/tech-docs/instant-run

Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run. Uncheck the box next to Restart activity on code changes. (first checkbox)

(based on the instant run comment found here : Rejecting class because it failed compile-time verification Android)

这篇关于Android Studio有errore白色的mail.jar和additionnal.jar和activation.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆