VFY: unable to resolve virtual method

前端 未结 3 975
囚心锁ツ
囚心锁ツ 2021-01-17 10:27

I am using Jackson in my android app.

I have added these two jars in my build-path:

jackson-core-asl-1.0.0.jar
jackson-mapper-asl-1.0.0.jar
         


        
3条回答
  •  半阙折子戏
    2021-01-17 10:42

    In my case, this solution cannot work.
    Check the code format of jar file is fit as JDK 1.6,
    I found this issue via changing my lib code format from 1.7 to 1.6, and this issue would be solved.

    1. To add a external jar on eclipse for Android Project, we can do as this :
      . Project properties -> Java Build Path -> Libraries then add those External Jar file.
      . Project properties -> Java Build Path -> Order & Export then checked those External Jar file.
      You can clean & re-build the target project to see the apk file size and test those functions in external jar.

    2. To add a external jar on eclipse for Android Project, we can do as this :
      . copy the jar file to libs of android project, and done.

      For #1, it is easy to handle multi-projects for one libs.
      For #2, it is easy to use and no configure required.

      That's all.

提交回复
热议问题