Getting Error Attempt to invoke interface method 'android.app.Activity'...... on a null object reference

Hello Guys.

I am Getting this Error without Any Reason

**

Attempt to invoke interface method ‘android.app.Activity com.google.appinventor.components.runtime.ComponentContainer.$context()’ on a null object reference

**

All the Blocks is Correct , when I open the app It shows me that error.

The Error comes on only Screen1

The Error not come every time but it comes randomly , sometime the error come when it opens first time , or sometime it comes after 3 to 4 times open.

But I Cannot identify what does the screen error means ?

Or

How to avoid the error ??

Can Anyone Help Me in this ??

Thanks In Advance :innocent:

Here is what error comes in screen :

Here Is The Block Image :

Try to remove animation block from screen initialize

Is the problem occuring due to gradient animation extension ??

I think you can try to remove and then test.

Try to get the logcat and post that here.

after removing that block including its shows me the same error

How to get log cat in kodular ?

See here