Android update 17 seems incompatible with external Jars

前端 未结 3 1623
半阙折子戏
半阙折子戏 2020-11-22 04:40

I just allowed my Mac to do an update on its Java installation and now some of my old jars (like javax.mail and apache.commons.httpclient) are thro

3条回答
  •  逝去的感伤
    2020-11-22 05:25

    crash at run time with exceptions that look like this: Could not find class 'javax.mail.internet.InternetAddress', referenced from method com.my.project.Main.isValidEmailAddress

    If you have problems with external jars, then:

    1. create a folder named libs.
    2. Copy and paste all needed external jar files into that folder.

    It will automatically be included, as explained on this page: Dealing with dependencies in Android projects

提交回复
热议问题