search

Home  >  Q&A  >  body text

android - E/dalvikvm: Could not find class java.nio.file.Path,

安卓项目中要用到jackson库,但是运行时报错
E/dalvikvm: Could not find class 'java.beans.Transient', referenced from method com.fasterxml.jackson.databind.ext.Java7SupportImpl.<init>
E/dalvikvm: Could not find class 'java.nio.file.Path', referenced from method com.fasterxml.jackson.databind.ext.Java7SupportImpl.getClassJavaNioFilePath
W/Java7Support: Unable to load JDK7 types (annotations, java.nio.file.Path): no Java7 support added

stackoverflow上有一个帖子,但是并不明白该怎么处理
http://stackoverflow.com/ques...

伊谢尔伦伊谢尔伦2801 days ago2655

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:19:42

    He means:

    If these Warning信息打扰到你,你可以将log级别调为ERROR do not affect the use of functions, it is just that Android lacks these APIs.

    In proguard 中忽略这些WarningLog:

    -dontwarn java.nio.file.**

    reply
    0
  • Cancelreply