ошибка cannot resolve symbol

Ответить
Sanek517s
Сообщения: 33
Зарегистрирован: 03 ноя 2014, 19:39

ошибка cannot resolve symbol

Сообщение Sanek517s » 09 ноя 2014, 21:19

Появляется данная ошибка (cannot resolve symbol), после того как подключаю support библиотеки. Работаю в Android Studio.

Аватара пользователя
doter.ua
Сообщения: 1106
Зарегистрирован: 23 ноя 2013, 16:08
Откуда: Ukraine

Re: ошибка cannot resolve symbol

Сообщение doter.ua » 10 ноя 2014, 00:41

некоторые классы заменяются другими, например вместо manager может быть supportmanager в logCat написано что именно не может распознать система.
Семь раз отмерь - поставь студию.
Эклипс не студия, ошибка вылетит - не исправишь.
Скажи мне кто твой друг, и оба поставили студию.
Студия - свет, а эклипс - тьма.

Sanek517s
Сообщения: 33
Зарегистрирован: 03 ноя 2014, 19:39

Re: ошибка cannot resolve symbol

Сообщение Sanek517s » 10 ноя 2014, 08:59

Можете расписать как решить проблему?

Аватара пользователя
doter.ua
Сообщения: 1106
Зарегистрирован: 23 ноя 2013, 16:08
Откуда: Ukraine

Re: ошибка cannot resolve symbol

Сообщение doter.ua » 10 ноя 2014, 12:14

Sanek517s писал(а):Можете расписать как решить проблему?
Без лога ваше вопрос звучит как: "я ехал на машине, но вдруг она сломалась, вот вам фото машины, в чем проблема?"
Семь раз отмерь - поставь студию.
Эклипс не студия, ошибка вылетит - не исправишь.
Скажи мне кто твой друг, и оба поставили студию.
Студия - свет, а эклипс - тьма.

Sanek517s
Сообщения: 33
Зарегистрирован: 03 ноя 2014, 19:39

Re: ошибка cannot resolve symbol

Сообщение Sanek517s » 10 ноя 2014, 12:16

Ок, буду дома - скину.

Аватара пользователя
altwin
Сообщения: 1951
Зарегистрирован: 13 ноя 2013, 14:46

Re: ошибка cannot resolve symbol

Сообщение altwin » 11 ноя 2014, 19:36

doter.ua писал(а):
Sanek517s писал(а):Можете расписать как решить проблему?
Без лога ваше вопрос звучит как: "я ехал на машине, но вдруг она сломалась, вот вам фото машины, в чем проблема?"
А мы тут все давно уже в "Угадай Мелодию" играем :)

P.S> зарезолвить оно support не может? добавьте в зависимости градла что -то вроде:
[syntax=xml]...
dependencies {
compile 'com.android.support:support-v4:21.0.+'
}[/syntax]
Изображение

Sanek517s
Сообщения: 33
Зарегистрирован: 03 ноя 2014, 19:39

Re: ошибка cannot resolve symbol

Сообщение Sanek517s » 11 ноя 2014, 19:49

Код: Выделить всё

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources]
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72100Library
:app:prepareComAndroidSupportSupportV42100Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-xhdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-hdpi\abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-mdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-hdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-hdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\drawable-xhdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v14\values.xml
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
	C:\Users\Sanek\AppData\Local\Android\android-sdk\build-tools\21.1.1\aapt.exe package -f --no-crunch -I C:\Users\Sanek\AppData\Local\Android\android-sdk\platforms\android-17\android.jar -M C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug -A C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\assets\debug -m -J C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\generated\source\r\debug -F C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package actnbr.actnbr -0 apk --output-text-symbols C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\symbols\debug
Error Code:
	1
Output:
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:11: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:13: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:21: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:23: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:38: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:39: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v11\values.xml:33: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v14\values.xml:10: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v11\values.xml:39: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v14\values.xml:17: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v11\values.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v14\values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v11\values.xml:51: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v14\values.xml:31: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:46: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:55: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:62: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:216: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:217: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:218: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:219: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:220: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:228: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:229: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:230: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:231: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:232: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:233: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:234: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:237: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:239: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:240: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:241: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:242: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:245: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:247: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:248: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:249: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:250: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:255: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:256: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:260: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:264: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:268: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:100: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:102: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:103: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:101: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:98: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:99: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:137: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:139: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:140: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:138: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:135: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:136: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:174: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:176: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:177: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:175: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:172: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:173: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:211: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:213: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:214: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:212: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:209: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
	C:\Users\Sanek\Dropbox\Codes\AndroidProjects\actnbr\app\build\intermediates\res\debug\values-v21\values.xml:210: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Information:BUILD FAILED
Information:Total time: 6 hrs 11 mins 3.257 secs
Information:101 errors
Information:0 warnings
Information:See complete output in console
Вот логи. Возникает ошибка cannot resolve symbol 'R', каждый раз когда подключаю appcompat v7. При его удалении ошибка пропадает. Работаю в студии

Аватара пользователя
Foenix
Сообщения: 4201
Зарегистрирован: 20 окт 2012, 12:01

Re: ошибка cannot resolve symbol

Сообщение Foenix » 11 ноя 2014, 20:09

у меня у самой эти же свинские ошибки сегодня, никак не могу побороть.
Попробуй выставить в свойствах проекта либы таргет-версию 21, а не ту, что там указана. Эта пропадет, но может что-то другое появится. не гарантирую. Я пока не решила что делать.
R.id.team

NullPointerException - что делать???
viewtopic.php?f=33&t=3899&p=28952#p28952
Где моя ошибка?
viewtopic.php?f=60&t=3198

KrivosheevEV
Сообщения: 1
Зарегистрирован: 27 мар 2015, 15:40

Re: ошибка cannot resolve symbol

Сообщение KrivosheevEV » 27 мар 2015, 15:43

AppCompat v21 builds themes that require the new APIs provided in API 21 (Android 5.0). To compile your application with AppCompat, you must also compile against API 21. The recommended setup for compiling/building with API 21 is a compileSdkVersion of 21 and a buildToolsVersion of 21.0.1 (which is the highest at this time - you always want to use the latest build tools).

http://stackoverflow.com/questions/2645 ... values-xml

nikomp
Сообщения: 68
Зарегистрирован: 08 дек 2014, 17:03

Re: ошибка cannot resolve symbol

Сообщение nikomp » 19 май 2015, 13:58

у меня была такая ошибка в Android Studio.
Проходил уроки, писал приложение под версию андроид 4.0.3, соответственно в build.gradle была запись minSdkVersion 15, я изменил ее на minSdkVersion 22, ошибка пропала, вернул minSdkVersion 15, ошибка не появилась.

Ответить