java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/logging/LogFactory

后端 未结 5 1681
北海茫月
北海茫月 2021-02-04 01:31

Similar questions have need asked already. But this one seems to be more complicated than previous ones because of changes in compatibility of Android Platforms.

Here is

5条回答
  •  离开以前
    2021-02-04 01:46

    An alternative workaround is to add the commons-logging library as a .jar file to your libs/ folder instead of using implementation. Make sure that implementation fileTree(include: ['*.jar'], dir: 'libs') is in your dependencies.

    Sources of commons-logging-1.2.jar:

    1. Maven Repository
    2. Apache Commons Logging

    Credit: Dale Lim - https://github.com/aws/aws-sdk-android/issues/265#issuecomment-411978696

提交回复
热议问题