NoClassDefFoundError at runtime but class is in classes.dex, what givies?

后端 未结 1 1839
慢半拍i
慢半拍i 2021-01-12 03:07

I have included a JAR file built from an Eclipse Android project, and I am referencing it in my Android Studio project like the following:

  compile files(\'         


        
相关标签:
1条回答
  • 2021-01-12 03:57

    A class with dependencies which cannot be met at runtime will usually be dropped during installation, dex optimization or similar preparatory process.

    If you uninstall the app, start up something collecting all of logcat and then install it again, you may find by searching through the result that there is mention of the issue buried in the logs generated during the installation/preparation process.

    In this specific case here, an edit to the question indicates that the missing class itself had this type of unsatisfied dependency.

    0 讨论(0)
提交回复
热议问题