Interface fields showing as null in Android Studio
<p>I have an interface with fields. </p>

<p>For example:</p>

<pre><code>public interface InterfaceWithFields {
    String field1 = "FIELD_1";
    String field2 = "FIELD_2";
}
</code></pre>

<p>When I debug the project using Android Studio, sometimes (not everytime) - I try to get the field and it returns null - </p>

<pre><code>InterfaceWithFields.field1 /returns null
</code></pre>

<p>I thought all the time field in interface by default is <code>public static final</code> - it means it static at least - so it must be initialized immediately, when class is loaded.</p>