How to search unresolved libraries in Intellij IDEA or Android Studio?
<p>I'm trying to port <a href="http://flink.apache.org" rel="nofollow">Apache Flink</a> to Android. One of the biggest problem is that some java tools doesn't exist for Android, but these conflict are not detected at compile time and the errors (<code>NoClassDefFoundError</code> excpetion) are detected only at runtime.</p>

<p>For example, Java's <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/management/ManagementFactory.html" rel="nofollow">ManagementFactory</a> doesn't exists for android, BUT no compile error is thrown even if in <a href="https://github.com/apache/flink/blob/c08bcf1e008397bfe22353e3ba3d9d9656e7d3c1/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/MemoryLogger.java" rel="nofollow">this</a> class there are unresolved symbols/libraries, in particular:</p>

<pre><code>import javax.management.MBeanServer;

import java.lang.management.BufferPoolMXBean;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
import java.lang.management.MemoryPoolMXBean;
import java.lang.management.MemoryType;
import java.lang.management.MemoryUsage;
</code></pre>

<p>Now, I included the Flink's jars (flink-clients, flink-java, flink-runtime and flink-streaming) in my Android Studio project and I would like to search all these kind of unresolved dependencies to avoid these kind of exception at runtime. There is any Android Studio tool for this purpose?</p>