java.lang.NoClassDefFoundError: Failed resolution of: Ljava/time/LocalTime;
<p>I'm developing an app using Android Studio 2.1.2, API level 23.
In a class I used the <code>java.time.LocalTime</code> class, but at runtime an unhanded <code>NoClassDefFoundError</code> exception kills my activity. Googling, I understood that I have to add dependencies in build.gradle because Android classes are developed using a version of JDK older than Java 8 (when the <code>LocalTime</code> class has been added).</p>

<p>So I have to write something like: <code>compile "java.time:LocalTime:1.8"</code> </p>

<p>But it doesn't work.</p>