Sergi Martínez
Sergi Martínez
Still not working?
Lint reports all these imports not existing in Android: ``` ../../../../../.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-core/2.2/c707664e020218f8529b9a5e55016ee15f0f82ac/log4j-core-2.2.jar: Invalid package reference in library; not included in Android: java.lang.management. Referenced from org.apache.logging.log4j.core.jmx.Server. ../../../../../.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-core/2.2/c707664e020218f8529b9a5e55016ee15f0f82ac/log4j-core-2.2.jar: Invalid package reference in library;...
In my case, being a lint issue, I solved it by adding this configuration: ```xml ```
Question, when mentioning "Then, the simplest way to configure default logging is by log4j2.component.properties resource file:" Where and how to setup this file for an Android project?
Thanks, now it works perfectly on Android 8, buuuut, lint is not happy about it. It returns the error: ``` Package not included in Android ../../../../../.gradle/caches/modules-2/files-2.1/org.apache.logging.log4j/log4j-api/2.2/d7ef6ad7ff0711dd12fe409d62d72d6ed14516e0/log4j-api-2.2.jar: Invalid package reference in...
More info. If I remove the exclusion on log4j-core, the apps crashes, but lint says nothing about the java.lang.management issue, despite the classes are not there. This looks like a...
No news on this issue? We stopped using dialogflow because this (it was an experimental feature) But, as @vandalko said, log4j is not intended for android, so, why is this...
Worked for me too, otherwise it was crashing on going bakcground and coming back after the fragment has been destroyed. Should it be added to official code?
Noted :)