Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Creating the Screen Layout Adding a Button

running android studio 1.5....gradle build fail...got so many errors do not know where to begin...

Gradle Message... Information:Gradle tasks [:app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE :app:prepareComAndroidSupportDesign2311Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42311Library 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 :app:processDebugManifest UP-TO-DATE :app:processDebugResources /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/build/intermediates/res/merged/debug/values-ldltr-v21/values-ldltr-v21.xml Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'. /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/build/intermediates/res/merged/debug/values-ldrtl-v23/values-ldrtl-v23.xml Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'. /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/src/main/res/values-v21/styles.xml Error:(3, 5) No resource found that matches the given name: attr 'android:statusBarColor'. Error:(3, 5) No resource found that matches the given name: attr 'android:windowDrawsSystemBarBackgrounds'. /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/build/intermediates/res/merged/debug/values-v21/values-v21.xml Error:(20) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'. Error:(22) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'. Error:(28) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'. Error:(35) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'. Error:(210) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'. Error:(212) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'. Error:(220) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'. Error:(227) Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'. Error:(172) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'. Error:(183) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.EditText'. Error:(13) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. Error:(10) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'. Error:(11) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'. Error:(12) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'. Error:(14) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'. Error:(15) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'. Error:(16) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'. Error:(17) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'. Error:(18) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'. Error:(19) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'. Error:(21) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'. Error:(23) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. Error:(25) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. Error:(27) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'. Error:(29) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'. Error:(30) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'. Error:(32) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'. Error:(34) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'. Error:(36) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'. Error:(37) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'. Error:(38) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'. Error:(40) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. Error:(42) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'. Error:(44) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. Error:(46) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'. Error:(48) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'. Error:(50) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'. Error:(52) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button'. Error:(53) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'. Error:(55) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'. Error:(57) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'. Error:(58) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'. Error:(59) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'. Error:(61) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'. Error:(161) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'. Error:(163) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'. Error:(165) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. Error:(167) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. Error:(170) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. Error:(175) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button'. Error:(176) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless'. Error:(177) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Borderless.Colored'. Error:(178) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Small'. Error:(179) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ButtonBar'. Error:(180) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.CheckBox'. Error:(181) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.CompoundButton.RadioButton'. Error:(182) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'. Error:(186) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ImageButton'. Error:(187) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. Error:(189) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'. Error:(191) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'. Error:(193) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'. Error:(199) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'. Error:(201) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'. Error:(202) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'. Error:(204) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'. Error:(214) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.RatingBar'. Error:(215) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.SeekBar'. Error:(216) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'. Error:(217) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.TextView.SpinnerItem'. Error:(218) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'. /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.1/res/values-v21/values-v21.xml Error:(82, 5) No resource found that matches the given name: attr 'android:colorAccent'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(82, 5) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(126, 5) No resource found that matches the given name: attr 'android:windowElevation'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorAccent'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(129, 5) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(173, 5) No resource found that matches the given name: attr 'android:windowElevation'. Error:(212, 5) No resource found that matches the given name: attr 'android:overlapAnchor'. Error:(223, 5) No resource found that matches the given name: attr 'android:overlapAnchor'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorAccent'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(253, 5) No resource found that matches the given name: attr 'android:colorPrimaryDark'. /Users/ceciliawilliams/AndroidStudioProjects/FunFacts/app/build/intermediates/res/merged/debug/values-v23/values-v23.xml Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(24) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/ceciliawilliams/Library/Android/sdk/build-tools/21.0.1/aapt'' finished with non-zero exit value 1 Information:BUILD FAILED Information:Total time: 30.806 secs Information:103 errors Information:0 warnings

Niyamat Almass
Niyamat Almass
8,176 Points

I don't know what's your problem.

Go to File or Android studio/Invalidate Caches/Restart and the press Invalidate Caches/Restart. It may be solve your problem.If not then tell me.

2 Answers

I have resolved most of those errors changed to api5 & 21..corrected all errors except 3... Manifest, debug and dependency errors...

I would recommend the using the version of Android Studio used in the videos. (https://teamtreehouse.com/community/where-do-i-get-the-android-studio-beta-used-in-the-video-i-downloaded-as-14-from-the-site)

Also search Youtube for troubleshooting Android Studio 1.5 (gradle).