Gorio, dessa forma vc usou alguma estratégia para esconder a senha do email? Pois dessa forma fico com receio de alguem descompilar e pegar a senha do email.
Em segunda-feira, 29 de junho de 2015 11:07:35 UTC-3, gorio escreveu:
-- Em segunda-feira, 29 de junho de 2015 11:07:35 UTC-3, gorio escreveu:
O problema que estou enfrentando é exatamente este deste site..Fiz o projeto no eclipse e rodou perfeito, já no Android Studio não consigo incluir as libs (.jar)..Alguém já passou por isso ?compile 'javax.activation:activation:1.1.1' compile 'javax.mail:mail:1.5.0-b01'
compile files('libs/additionnal.jar')2015-06-26 18:10 GMT-03:00 Marcos Azevedo <mdiego....@gmail.com>:Inclua compile fileTree(include: ['*.jar'], dir: 'libs')--2015-06-26 17:53 GMT-03:00 Gorio <gori...@gmail.com>:Estou incluindo as libs no gradle dessa formacompile files('libs/activation.jar')
compile files('libs/additionnal.jar')
compile files('libs/mail.jar')Porém na classe ele não reconhece os imports.. alguma dica ?2015-06-26 17:36 GMT-03:00 Gorio <gori...@gmail.com>:Consegui enviar agora..Não sei o que ocorre no Android Studio, mas não esta reconhecendo os jars..Testei pelo eclipse e foi.. vou investigar o porque..2015-06-26 17:06 GMT-03:00 Marcos Azevedo <mdiego....@gmail.com>:AbsVocê está com os 3 jars?Consegue enviar e-mail sem anexo?
mail.jar, activation.jar e additionnal.jar--2015-06-26 17:02 GMT-03:00 Gorio <gori...@gmail.com>:Também não deu certo..Já tentei colocar as libs (*.jar) e também não deu certo..2015-06-26 16:38 GMT-03:00 Marcos Azevedo <mdiego....@gmail.com>:Abs.Dá uma olhada no link abaixo vê se te ajuda..
http://mrbool.com/how-to-work-with-java-mail-api-in-android/ 27800 --2015-06-26 16:32 GMT-03:00 Gorio <gori...@gmail.com>:--Boa tarde,Estou tentando a algumas horas enviar um e-mail via SMTP com anexo de forma assíncrona e de todos os meios que pesquisei levam a este casoEstou utilizando esta libcompile 'javax.mail:javax.mail-api:1.5.3' Porém está dando o seguinte erro..java.lang.NoClassDefFoundError: Failed resolution of: Lcom/sun/mail/util/PropUtil; at javax.mail.internet.ParameterList.<clinit>( ParameterList.java:141) at javax.mail.internet.ContentType.setParameter( ContentType.java:198) at javax.mail.internet.MimeMultipart.<init>( MimeMultipart.java:214) at javax.mail.internet.MimeMultipart.<init>( MimeMultipart.java:193) at br.com.digipronto.brfapp.util.Mail.<init>(Mail.java:56) at br.com.digipronto.brfapp.util.Mail.<init>(Mail.java:72) at br.com.xxx.brfapp.fragment.FragmentCoaching$9.onClick( FragmentCoaching.java:582) at com.android.internal.app.AlertController$ButtonHandler. handleMessage(AlertController. java:162) at android.os.Handler.dispatchMessage(Handler.java: 102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5832) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run( ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit. java:1194) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sun.mail.util.PropUtil" on path: DexPathList[[zip file "/data/app/br.com.digipronto. brfapp-1/base.apk"], nativeLibraryDirectories=[/ data/app/br.com.digipronto. brfapp-1/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass( BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java: 511) at java.lang.ClassLoader.loadClass(ClassLoader.java: 469) at javax.mail.internet.ParameterList.<clinit>( ParameterList.java:141) at javax.mail.internet.ContentType.setParameter( ContentType.java:198) at javax.mail.internet.MimeMultipart.<init>( MimeMultipart.java:214) at javax.mail.internet.MimeMultipart.<init>( MimeMultipart.java:193) at br.com.xxx.brfapp.util.Mail.<init>(Mail.java:56) at br.com.xxx.brfapp.util.Mail.<init>(Mail.java:72) at br.com.xxx.brfapp.fragment.FragmentCoaching$9.onClick( FragmentCoaching.java:582) at com.android.internal.app.AlertController$ButtonHandler. handleMessage(AlertController. java:162) at android.os.Handler.dispatchMessage(Handler.java: 102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5832) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run( ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit. java:1194) Suppressed: java.lang.ClassNotFoundException: com.sun.mail.util.PropUtil at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java: 781) at java.lang.BootClassLoader.loadClass(ClassLoader.java: 841) at java.lang.ClassLoader.loadClass(ClassLoader.java: 504) ... 16 moreCaused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available Alguém tem alguma ideia que possa me ajudar ?
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-...@googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário