IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

后端 未结 2 1224
栀梦
栀梦 2021-01-15 00:13

When I run my Android application, I encounter this NoClassDefFoundError:

03-13 18:06:38.648: E/AndroidRuntime(413): Uncaught handler: thread ma         


        
2条回答
  •  梦谈多话
    2021-01-15 00:32

    I just hit and solved this issue - you need to add all of the dependencies in your android project's pom.xml to your test projects pom.xml with a scope as provided

    per this bug report: http://code.google.com/p/maven-android-plugin/issues/detail?id=142

    e.g.

            
                org.apache.commons
                commons-lang3
                3.1
                provided
            
    

提交回复
热议问题