Android Studio Project corrupted? -


when started android studio got bunch of error messages saying bunch of plugins missing or uninstalled or whatever. restarted android studio couple of times , seemed though problem fixed itself. (no idea going on there.)

then new problem arised. project have been working on seems damaged/corrupt. don't know how or why. here's says:

information:gradle tasks [:app:assembledebug] c:\users\peter\androidstudioprojects\alarmclock\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml error:(4) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.inverse'. error:(34) error retrieving parent item: no resource found matches given name 'android:widget.material.button.colored'. error:(4) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.inverse'. error:(34) error retrieving parent item: no resource found matches given name 'android:widget.material.button.colored'. c:\users\peter\androidstudioprojects\alarmclock\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml error:(3) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.borderless.colored'. error:(4) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.colored'. error:(3) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.borderless.colored'. error:(4) error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.button.colored'. error:execution failed task ':app:processdebugresources'. com.android.ide.common.process.processexception: failed execute aapt information:build failed information:total time: 1.255 secs

i booted project , worked fine.

the last thing did corrupt project change (not sure why) , result crash every time clicked button while running project. start debugging today, when whole mess happened.

in mainactivity says:

cannot resolve symbol 'r'

i imagine that's bad thing..

edit: got working, still have issue. see screenshots below:

my faulty project

above project tree looks now.

correct project

above project tree project working correctly. want both this. (the faulty project used this.)

cannot resolve symbol 'r' common error , often, cause malformed xml file.

check layouts, menus etc should not there. simple accidentally typing random character 1 of files or invalid string.

once build completes normally, other errors go away.

many more options listed in question.

"cannot resolve symbol r" in android studio

edit:

choose android view menu indicated.

project view


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -