=> Replace this code implementation "androidx.room:room- compiler:2.4.2" with annotationProcessor "androidx.room:room-compiler:2.4.2" in gradle module (First module);
Set useAndroidX and enableJetifier to true in the gradle properties files
Sync and build