Я работал над своим проектом, когда вдруг Rjava исчез, и весь проект теперь сломан, так как отсутствует R. Я попытался восстановить его снова, но он не работает ......... любые решения, пожалуйста?Отсутствует R.java во время кодирования
Сообщения об ошибках:
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
Возможный дубликат [для Android в Eclipse: R.java не регенерируется] (http://stackoverflow.com/questions/2757107/developing-for-android-in-eclipse-r-java-not- регенерирует) –
Кажется, проблема в стилях xml и теме. –
просто перезапустите студию Android или очистите свой проект и восстановите его! thts это –