有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

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

我是安卓和安卓工作室的noob。这些错误消息清楚地说明了问题所在,但我不知道如何修复它们,也不知道它们最初为什么会出现,因此非常感谢您的帮助。我在Ubuntu 14.04上。该项目以安卓 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控制台的输出(由于太长,有很多部分被切断):

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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '@安卓: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 '@安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓:colorPrimaryDark'.

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.安卓.ide.common.internal.LoggedErrorException: Failed to run command:
    /usr/share/安卓-studio/data/sdk/build-tools/安卓-4.4W/aapt package -f --no-crunch -I /usr/share/安卓-studio/data/sdk/platforms/安卓-19/安卓.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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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 '安卓: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

共 (1) 个答案

  1. # 1 楼答案

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