We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47066e3 commit 3f86eceCopy full SHA for 3f86ece
rcljava/src/test/java/org/ros2/rcljava/qos/QoSProfileTest.java
@@ -29,7 +29,18 @@ public class QoSProfileTest {
29
@BeforeClass
30
public static void setupOnce() throws Exception {
31
// Just to quiet down warnings
32
- org.apache.log4j.BasicConfigurator.configure();
+ try
33
+ {
34
+ // Configure log4j. Doing this dynamically so that Android does not complain about missing
35
+ // the log4j JARs, SLF4J uses Android's native logging mechanism instead.
36
+ Class c = Class.forName("org.apache.log4j.BasicConfigurator");
37
+ Method m = c.getDeclaredMethod("configure", (Class<?>[]) null);
38
+ Object o = m.invoke(null, (Object[]) null);
39
+ }
40
+ catch (Exception e)
41
42
+ e.printStackTrace();
43
44
}
45
46
@Test
0 commit comments