安卓项目中要用到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...
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
中忽略这些Warning
Log:
-dontwarn java.nio.file.**