Gradle issue in react native project

Problems reading data from Binary store in C:\Users\XYZ\.gradle\.tmp\gradle10445319338739101033.bin offset 783995 exists? true
Problems loading the resolution results (0.0 secs). Read 272 values, last was: 5
Corrupt serialized resolution result. Cannot find selected component (30837) for constraint debugCompileClasspath -> com.google.firebase:firebase-messaging:{strictly 24.0.3}

can anyone please let me know how to fix this issue?