2014-11-03 234 views
0

操作系统:Ubuntu 14.04 - IDE:Android Studio我需要安装哪些sdk版本?

我无法让我的应用程序运行。目前android 4.4.2(api 19)是我的目标sdk,我的最小值是2.3.3(api 10)。所以我build.gradle看起来像这样(只是相关位):

android { 
    compileSdkVersion 19 
    buildToolsVersion '21.1.0' 
    defaultConfig { 
     applicationId "com.example.yerman.sunshine.app" 
     minSdkVersion 10 
     targetSdkVersion 19 
     versionCode 1 
     versionName "1.0" 
    } 

然而,我的应用程序将无法运行。当我按下运行按钮时,android studio不会完全冻结,但说我得到101错误,并且不会让我看看Gradle控制台或事件日志。我相信尽早看到错误,但它们与本文结尾处列出的错误类似。我问一个问题就在这里更早的时候,我有,并通过卸载所有,但的是Android 5.0(API 21)类似的问题我有我的应用程序工作。但我不想被限制在那个API。前一个问题是here。我应该安装哪些sdk版本或sdk管理器的其他下载来完成这项工作?我想到我可能需要我的最低版本和我的目标SDK之间的所有版本......是这种情况吗?

完整的我公司目前已经安装了什么列表:

工具:

  • Android SDK工具23.0.5
  • 的Android SDK平台的工具,21
  • Android SDK中构建的工具21.1

的是Android 5.0(API 21):

  • SDK平台
  • 英特尔的x86的Atom系统映像
  • 谷歌的API
  • 谷歌API的英特尔x86的凌动系统映像

Android 4.4系统。 2(API 19):

  • SDK平台
  • 英特尔的x86原子系统映像
  • 谷歌的API(x86系统上的图像)

附加功能:

  • 支持Android库8
  • 支持Android库21.0。从摇篮控制台1个

错误(编辑:全光输出太长):

/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 

回答

0

目前,我有这个设置:

compileSdkVersion 21 
buildToolsVersion "21.0.2" 

defaultConfig { 
    applicationId "com.example.serviceexamples" 
    minSdkVersion 15 
    targetSdkVersion 21 
    versionCode 1 
    versionName "1.0" 
} 

,这似乎是一个赢得组合:)

+0

您是否设置了最低sdk版本?另外,你的目标SDK版本是否与你的编译版本相同? – Totem 2014-11-03 00:52:47

+0

这是否支持15和21之间的所有版本,即使我只有例如21安装? – Totem 2014-11-03 01:05:14

+0

当然。这应该。 – 2014-11-03 01:12:33