I was working on my project when suddenly the R.java disappeared and the entire project is broken now as the R is missing. I tried rebuilding it again but it's not working ......... any solutions, please?
Error messages:
Information:Gradle tasks [clean, :app:generateDebugSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:generateDebugAndroidTestSources, :app:compileDebugSources, :app:compileDebugUnitTestSources, :app:compileDebugAndroidTestSources]
C:\Users\devha\AndroidStudioProjects\SystemApp\app\src\main\res\layout\activity_main.xml
Error:(13, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\src\main\res\layout\activity_main2.xml
Error:(13, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
Error:(20, 29) No resource found that matches the given name (at 'popupTheme' with value '@style/AppTheme.PopupOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\src\main\res\layout\activity_main3.xml
Error:(12, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\src\main\res\layout\content_main2.xml
Error:(83, 27) No resource found that matches the given name (at 'text' with value '@string/sign_out').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\build\intermediates\res\merged\debug\layout\activity_main.xml
Error:(13, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\build\intermediates\res\merged\debug\layout\activity_main2.xml
Error:(13, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
Error:(20, 29) No resource found that matches the given name (at 'popupTheme' with value '@style/AppTheme.PopupOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\build\intermediates\res\merged\debug\layout\activity_main3.xml
Error:(12, 24) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay').
C:\Users\devha\AndroidStudioProjects\SystemApp\app\build\intermediates\res\merged\debug\layout\content_main2.xml
Error:(83, 27) No resource found that matches the given name (at 'text' with value '@string/sign_out').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Information:BUILD FAILED
Information:Total time: 11.348 secs
Information:11 errors
Information:0 warnings
Information:See complete output in console