Initialize boolean value "no such instance field"
<p>I get an error in debugging and I can't set this boolean value. I attached a screenshot of the error.</p>

<p><a href="https://i.stack.imgur.com/MeSJb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MeSJb.png" alt="enter image description here"></a></p>

<p>I call DeviceUpdateManager in my mainActivity like this:</p>

<pre><code>public class MainActivity extends AppCompatActivity implements DeviceUpdateManager.OnDataCOM {
    DeviceUpdateManager deviceUpdateManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.deviceUpdateManager = new    DeviceUpdateManager(this.serverCOM,this.getApplicationContext(),this);
    }
etc...
}
</code></pre>

<p>I cannot find the error... Is it related to the passing Context in another class?</p>

<p><strong>EDIT:SOLVED</strong>
I reboot the PC and restarted Android Studio and everything worked great.</p>