Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
11/02/15 08:05 PM (9 years ago)

Android Studio - Failed to Sync Gradle project

I am compiling my first Android app using Android Studio. I am receiving the following error: ----- Failed to sync Gradle project 'clackprintandroid-Android-BTv3.0' Error:Cause: failed to find target with hash string 'android-14' in: /Users/xxxx/Library/Android/sdk <a href="openAndroidSdkManager">Open Android SDK Manager</a> ----- Here is a screenshot of my SDK Manager: https://www.dropbox.com/s/n3mug3esaklk5mf/Untitled-1.jpg?dl=0 Android 14 is not an option to download. I downloaded Android 15 but I am still receiving this error. Does anyone have any suggestions on how to resolve? Thanks you
 
Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
like
11/02/15 08:54 PM (9 years ago)
I am using self hosted 3.0.0.
 
Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
like
11/02/15 09:35 PM (9 years ago)
I was able to solve the problem by opening the Obsolete Package list in the SDK manager. Now I am getting the following errors: /Users/xxxx/StudioProjects/clackprintandroid-Android-BTv3.012/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values-v17/values-v17.xml Error:(6, 21) No resource found that matches the given name: attr 'android:textAlignment'. Error:(10, 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:paddingEnd'. Error:(13, 21) No resource found that matches the given name: attr 'android:paddingStart'. Error:(17, 21) No resource found that matches the given name: attr 'android:layout_marginEnd'. Error:(10, 21) No resource found that matches the given name: attr 'android:paddingEnd'. Error:(23, 21) No resource found that matches the given name: attr 'android:layout_marginStart'. Error:(26, 21) No resource found that matches the given name: attr 'android:layout_alignParentStart'. Error:(6, 21) No resource found that matches the given name: attr 'android:textAlignment'. Error:(10, 21) No resource found that matches the given name: attr 'android:paddingEnd'. Error:(13, 21) No resource found that matches the given name: attr 'android:paddingStart'. Error:(26, 21) No resource found that matches the given name: attr 'android:layout_alignParentStart'. Error:(37, 21) No resource found that matches the given name: attr 'android:layout_toStartOf'. Error:(40, 21) No resource found that matches the given name: attr 'android:layout_alignParentEnd'. Error:(44, 21) No resource found that matches the given name: attr 'android:layout_toEndOf'. Error:(37, 21) No resource found that matches the given name: attr 'android:layout_toStartOf'. Error:(23, 21) No resource found that matches the given name: attr 'android:layout_marginStart'. Error:(13, 21) No resource found that matches the given name: attr 'android:paddingStart'. /Users/xxxxx/StudioProjects/clackprintandroid-Android-BTv3.012/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.0/res/values-v21/values-v21.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:Widget.Material.AutoCompleteTextView'. 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:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(127, 21) No resource found that matches the given name: attr 'android:windowElevation'. Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(127, 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.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:(213, 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:(213, 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:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:(120, 21) No resource found that matches the given name: attr 'android:colorAccent'. Error:(124, 21) No resource found that matches the given name: attr 'android:colorButtonNormal'. Error:(122, 21) No resource found that matches the given name: attr 'android:colorControlActivated'. Error:(123, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'. Error:(121, 21) No resource found that matches the given name: attr 'android:colorControlNormal'. Error:(118, 21) No resource found that matches the given name: attr 'android:colorPrimary'. Error:(119, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'. Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/xxxx/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/02/15 09:53 PM (9 years ago)
Check to see what your build tools level is; should be around 23 or so... whatever, set it to the highest you have. For the build 'version, try increasing the SDK level a notch or two... maybe go high, and gradually change it lower if it compiles without errors. Do this in your build.gradle file for the 'module' (app). Cheers! -- Smug
 
Gb78
I hate code!
Profile
Posts: 48
Reg: May 28, 2012
Portland
3,030
like
11/02/15 11:25 PM (9 years ago)
Thanks SmugWimp. 22 worked.
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/03/15 12:22 AM (9 years ago)
Have a look at the build.gradle file you get after downloading the package from the BT server: compileSdkVersion 14 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.xyxyxyxyxyxy" minSdkVersion 14 targetSdkVersion 14 You see that it expects build tools version of 22.0.1, which has been serving well for more than a year by now.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.