您的位置:首页 > 移动开发 > Android开发

AndroidStudio出现错误

2016-02-10 18:13 405 查看
刚刚一打开Android Studio 就出现如下面问题。

Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :hellonotes:generateDebugSources, :hellonotes:generateDebugAndroidTestSources, :testexpandlv:generateDebugSources, :testexpandlv:generateDebugAndroidTestSources, :testi:generateDebugSources,
:testi:generateDebugAndroidTestSources]

:app:preBuild UP-TO-DATE

:app:preDebugBuild UP-TO-DATE

:app:checkDebugManifest

:app:preReleaseBuild UP-TO-DATE

:app:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE

:app:prepareComAndroidSupportSupportV42211Library 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 UP-TO-DATE

:app:generateDebugSources UP-TO-DATE

:app:preDebugAndroidTestBuild UP-TO-DATE

:app:prepareDebugAndroidTestDependencies

:app:compileDebugAndroidTestAidl UP-TO-DATE

:app:processDebugAndroidTestManifest UP-TO-DATE

:app:compileDebugAndroidTestRenderscript UP-TO-DATE

:app:generateDebugAndroidTestBuildConfig UP-TO-DATE

:app:generateDebugAndroidTestAssets UP-TO-DATE

:app:mergeDebugAndroidTestAssets UP-TO-DATE

:app:generateDebugAndroidTestResValues UP-TO-DATE

:app:generateDebugAndroidTestResources UP-TO-DATE

:app:mergeDebugAndroidTestResources UP-TO-DATE

:app:processDebugAndroidTestResources UP-TO-DATE

:app:generateDebugAndroidTestSources UP-TO-DATE

:hellonotes:preBuild UP-TO-DATE

:hellonotes:preDebugBuild UP-TO-DATE

:hellonotes:checkDebugManifest

:hellonotes:preReleaseBuild UP-TO-DATE

:hellonotes:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE

:hellonotes:prepareComAndroidSupportSupportV42211Library UP-TO-DATE

:hellonotes:prepareDebugDependencies

:hellonotes:compileDebugAidl UP-TO-DATE

:hellonotes:compileDebugRenderscript UP-TO-DATE

:hellonotes:generateDebugBuildConfig UP-TO-DATE

:hellonotes:generateDebugAssets UP-TO-DATE

:hellonotes:mergeDebugAssets UP-TO-DATE

:hellonotes:generateDebugResValues UP-TO-DATE

:hellonotes:generateDebugResources UP-TO-DATE

:hellonotes:mergeDebugResources UP-TO-DATE

:hellonotes:processDebugManifest UP-TO-DATE

:hellonotes:processDebugResources

D:\WorkSpace\AndroidS\ENote\hellonotes\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\values-v17\values.xml

Error:(7, 21) No resource found that matches the given name: attr 'android:paddingEnd'.

Error:(7, 21) No resource found that matches the given name: attr 'android:paddingEnd'.

Error:(10, 21) No resource found that matches the given name: attr 'android:paddingStart'.

Error:(7, 21) No resource found that matches the given name: attr 'android:paddingEnd'.

Error:(17, 21) No resource found that matches the given name: attr 'android:layout_marginStart'.

Error:(20, 21) No resource found that matches the given name: attr 'android:layout_alignParentStart'.

Error:(21, 21) No resource found that matches the given name: attr 'android:textAlignment'.

Error:(7, 21) No resource found that matches the given name: attr 'android:paddingEnd'.

Error:(10, 21) No resource found that matches the given name: attr 'android:paddingStart'.

Error:(20, 21) No resource found that matches the given name: attr 'android:layout_alignParentStart'.

Error:(31, 21) No resource found that matches the given name: attr 'android:layout_toStartOf'.

Error:(34, 21) No resource found that matches the given name: attr 'android:layout_alignParentEnd'.

Error:(38, 21) No resource found that matches the given name: attr 'android:layout_toEndOf'.

Error:(31, 21) No resource found that matches the given name: attr 'android:layout_toStartOf'.

Error:(17, 21) No resource found that matches the given name: attr 'android:layout_marginStart'.

Error:(10, 21) No resource found that matches the given name: attr 'android:paddingStart'.

D:\WorkSpace\AndroidS\ENote\hellonotes\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.1.1\res\values-v21\values.xml

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.

Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.

Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.

Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.

Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.

Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.

Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.

Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.

Error:(126, 21) No resource found that matches the given name: attr 'android:windowElevation'.

Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.

Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.

Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.

Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.

Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.

Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.

Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.

Error:(126, 21) No resource found that matches the given name: attr 'android:windowElevation'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Small'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ButtonBar'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.CheckBox'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.RadioButton'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.

Error:(211, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.

Error:(211, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.TextView.SpinnerItem'.

Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.

Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.

Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.

Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.

Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.

Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.

Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.

Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.

Error:(119, 21) No resource found that matches the given name: attr 'android:colorAccent'.

Error:(123, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'.

Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.

Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.

Error:(120, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.

Error:(117, 21) No resource found that matches the given name: attr 'android:colorPrimary'.

Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.

Error:Execution failed for task ':hellonotes:processDebugResources'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\ProgramDev\AndroidStudioSDK\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

Information:BUILD FAILED

Information:Total time: 8.112 secs

Information:118 errors

Information:0 warnings
Information:See complete output in console

首先我也不知道哪段错误是关键,所以全部贴上。

方法一:

检查一下AndroidManifest.xml里android:minSdkVersion是不是小于11
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: