Java Android Studio:运行应用程序时出现很多错误

Java Android Studio:运行应用程序时出现很多错误,java,android,android-studio,Java,Android,Android Studio,我是安卓和安卓工作室的noob。这些错误消息清楚地说明了问题所在,但我不知道如何修复它们,也不知道它们最初为什么会出现,因此非常感谢您的帮助。我在Ubuntu 14.04上。该项目以android 4.4.2(api 19)作为目标sdk 大多数(如果不是全部)错误属于“检索项的父项时出错”和“未找到与给定名称匹配的资源”类型 它最后说: * Try: Run with --stacktrace option to get the stack trace. Run with --info

我是安卓和安卓工作室的noob。这些错误消息清楚地说明了问题所在,但我不知道如何修复它们,也不知道它们最初为什么会出现,因此非常感谢您的帮助。我在Ubuntu 14.04上。该项目以android 4.4.2(api 19)作为目标sdk

大多数(如果不是全部)错误属于“检索项的父项时出错”和“未找到与给定名称匹配的资源”类型

它最后说:

* Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
但我不确定我会用这些选项运行到底是什么

下面是Gradle控制台的输出(由于太长,有很多部分被切断):


Material TextAppearance类是Android L的一部分。您的构建需要以API级别21为目标(并确保安装了这些SDK)。

我基本上卸载了除Android 5.0之外的所有其他SDK包。这就成功了。谢谢我自己没有安装L,所以它在那里对我来说似乎很奇怪。values-21目录可能是由Android Studio作为模板的一部分创建的。您不必卸载所有其他SDK软件包,只需将目标版本设置为Android L即可。嘿,当我重新安装api 19时,我的应用程序再次停止工作,并尝试再次将其作为目标,因为我不想被限制为api 21。我在这里发布了一个新问题:看起来你在另一个帖子上得到了一些反馈。以最新版本SDK为目标不会放弃对旧版本的支持,它只会采用最新的构建工具。如果可能,您应该始终尝试使用最新的SDK级别进行定向和编译。
Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72100Library UP-TO-DATE
: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 UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v11/values.xml:33: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v14/values.xml:10: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v11/values.xml:39: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v14/values.xml:17: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v11/values.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v14/values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/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'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:245: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:136: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:174: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:176: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:177: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:175: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:172: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:173: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:211: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:213: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:214: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:212: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:209: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
/home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:210: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    /usr/share/android-studio/data/sdk/build-tools/android-4.4W/aapt package -f --no-crunch -I /usr/share/android-studio/data/sdk/platforms/android-19/android.jar -M /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug -A /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/assets/debug -m -J /home/yerman/AndroidStudioProjects/Sunshine2/app/build/generated/source/r/debug -F /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.example.yerman.sunshine.app -0 apk --output-text-symbols /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/symbols/debug
  Error Code:
    1
  Output:
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v14/values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v11/values.xml:51: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v14/values.xml:31: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:237: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:245: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/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'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:172: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:173: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:211: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:213: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:214: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:212: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:209: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    /home/yerman/AndroidStudioProjects/Sunshine2/app/build/intermediates/res/debug/values-v21/values.xml:210: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2.063 secs