Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5749 Reply

    Jacob

    Can I use plugpdf without its logging framework ? it conflicts with the slf4j lib I am using in my app
    I get this error:

    “Unable to execute dex: Multiple dex files define Lorg/slf4j/ILoggerFactory”

    #5750 Reply

    Alex Black

    I’ve setup plugpdf as a module in my Android Studio project, and I’ve commented out its logging dependency to get things working:

    dependencies {
    compile files(‘libs/LogdogClient.jar’)
    //compile files(‘libs/commons-logging-1.1.1.jar’)
    compile files(‘libs/microlog4android-1.0.0.jar’)
    compile files(‘libs/plugpdfcore.jar’)
    compile files(‘libs/simple-xml-2.6.7.jar’)
    }

    #5751 Reply

    Dr. Plug
    Moderator

    Hi Jacob,

    Yes, it appears as if a similar .jar file in your project conflicts with PlugPDF’s commonLog.jar file. We can confirm that Alex’s way to workaround this issue will work in Android Studio.
    In case you are working with Eclipse, you can also avoid this problem by removing the commons-logging-1.1.1.jar in the libs folder in the plugpdf project. Please replace the commons-logging-1.1.1.jar with the commonLog.jar.

    Thanks again,

    Dr. Plug

    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
    • This reply was modified 1 year, 11 months ago by  Dr. Plug.
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Lorg/slf4j/ILoggerFactory conflicts with another slf4j lib
Your information: