Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
11/06/15 02:24 AM (8 years ago)

Android Studio errors Help plz

Hi i had some time to make anything at buzztouch so i am used with eclipse Now it is time to move to Android Studio to compile my apps It is my first time i am using Android studio. i came across with lot of problems but i manage to solve them reading inside here other members posts with similar errors Info : Android studio 1.4.1 sdk version : API14: Android 4.0 Build tools : 23.0.2 ( i tried also 22.0.0, 22.0.1 etc ) Depencies : libs/gcm.jar - compile play-services:8.3.0 - compile BT : Buzztouch Selfhosted V3 App : simple app with some screens - menus to test and experiment The Problems - errors (cant figure out where to look to solve them so need a guidance :) ) /home/caslor/StudioProjects/emaze demo1/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'. /home/caslor/StudioProjects/emaze demo1/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 '/home/caslor/Android/Sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
11/06/15 02:55 AM (8 years ago)
I changed com.google.android.gms:play-services from 8.1.0 to 6.5.87 and errors are gone.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/06/15 03:46 AM (8 years ago)
It's a little squirrelly, the first few times you use Android Studio... Like Miku says; check your Google Play version listed in your 'build.gradle' file, but those errors 'look' like you're using the wrong compiler. Whatever your latest version 'of compiler' is, use it. Cheers! -- Smug
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/06/15 03:48 AM (8 years ago)
Thanks miku !! That was the solution to my problem :) i post this instructions i found around the net for future reference (as i couldn check older version of play services in Android Studio panel ) There is a solution for android studio: 1.Close your project 2.Browse to the folder where your projects has been saved 3.Go to folder 'app' and open the file 'build.gradle' find this line : compile 'com.google.android.gms:play-services:7.3.0' and change the version (here 7.3.0) to an older one (like 6.5.87). You can find out available versions by looking at sdk/extras/google/m2repository/com/google/android/gms/play-services 5.open the project again SmugWimp where is the option for the compiler ? to check it also..
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/06/15 03:53 AM (8 years ago)
In the same build.gradle file as the Google Play Services compile statement. Usually at the top. Cheers! -- Smug
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/06/15 04:09 AM (8 years ago)
i think i use the right version (this was my first major error had to solve... i hadn’t install the api:14 and was getting some other errors ) but to be sure i will post the content of the file to see and tell me if it is also the wrong version... apply plugin: 'com.android.application' android { compileSdkVersion 14 buildToolsVersion '23.0.2' defaultConfig { applicationId "com.emazedemo" minSdkVersion 14 targetSdkVersion 14 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } }
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
11/06/15 04:17 AM (8 years ago)
Well, 'rule of thumb' is to use the latest 'compile' version you have... This is the sdk level you compile 'with'. So, in those first couple of lines, you can see you have sdk build 23.0.2, but you're using version 14. Try moving the sdk version to '23' and see of that makes anything smoother. in the 'defaultConfig' that is the 'target' sdk version for the app you're compiling 'for'. By default it's 14, and if you're good with that, leave it be. But sometimes, depending on the features you implement, you may need to alter that. usually to a higher version. Cheers! -- Smug
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
11/06/15 04:30 AM (8 years ago)
thanks both for the help :)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/06/15 06:26 AM (8 years ago)
Look at the build.gradle (Module app) you get after downloading the app from the BT server. Unless something has changed, there will be a line buildToolsVersion "22.0.1" I also use compile 'com.google.android.gms:play-services-ads:7.5.0' Use option File >> Project Structure >> Ads and click on the square for AdMob ads. After OK, Android Studio will add the line for google play services into the build.gradle file. It would be really nice if there was a way to do all that automatically, but it really is not that bad.
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
11/07/15 12:34 AM (8 years ago)
Dusko, has this something to do also with Google map in Android? For me it doesn't work, but I tried also this examples: http://buzztouch.com/forum/thread.php?tid=1B84677B9B9CDEED1AD4FD7&currentPage=1
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/07/15 12:55 AM (8 years ago)
>has this something to do also with Google map in Android? I wouldn't know, haven't touched Maps on Android for a while.
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
11/07/15 01:43 AM (8 years ago)
Did anybody else successfully insert Google Map in Android Studio?
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
02/29/16 11:56 PM (8 years ago)
I got no success by simply changing the version of "Google Play Services" by editing the build.gradle file at app/build.gradle … I changed "8.4.0" to "7.5.0" but still got errors.
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
02/29/16 11:58 PM (8 years ago)
By the way, as soon as I use Android Studio to glance at File > Project Settings and look at the Google Play settings, it overrides what I had manually inputted. It switches it back to "8.4.0" and I still have errors. The errors then are different, but I have errors both ways.
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
03/01/16 12:24 AM (8 years ago)
After you change Google play services, you need to click "Sync now" in right upper corner.
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/01/16 09:58 AM (8 years ago)
Miku What you mention here (syncing) is not an option for me. I have no earlier version of Google play services to select and sync. If I manually input an earlier version into the build.gradle file, as soon as Android Studio gets a chance to, it overrides that by putting in the later version. When I go to SDK Manager, there are no earlier versions of Google play services offered for me. I have no way to select anything earlier and sync it. ??
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/01/16 01:10 PM (8 years ago)
For those following this thread, related discussion is also happening here: https://www.buzztouch.com/forum/thread.php?tid=3BA85A6B1755721DFA856E9 There is a post there by Smugwimp that I am trying... It was posted 03/01/16 05:11 AM
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
03/01/16 01:56 PM (8 years ago)
>What you mention here (syncing) is not an option for me Syncing in Android Studio means that it will read again the gradle files, and then connect ("sync") with the rest of the project. Whenever it says sync -- it will be synced, it simple cannot work in any other way. The advice from the other thread to downgrade the version of Google Services may not be applicable to your case. It probably worked because all the files that were needed were on the machine already, from earlier downloads. It is highly improbable that that will work for you as your setup is different. Android is Google's world and Google's rules. They mandate to use the highest version of the Google Play service so abide by that, don't downgrade. So, what to do? There is a PDF document that comes with the download from the server, read it and do things exactly as it says there. There will be an image or two of the SDK files that you must have for Buzztouch to work so be sure to download them. You will also need version 14 as BT is geared towards that and will not work with higher versions without that part of the SDK. By the way, you probably won't see Version 14 in the list until you click on "obsolete". There are changes in the Buzztouch structure as well to consider. A year ago, it worked with 22.0.1, now it is buildToolsVersion "23.0.2" That in turn means that nothing will work until you downloaded version 23 of the SDK... and so on. With Android, you are constantly on guard for new SDK versions and downloads.
 
DougJoseph
Aspiring developer
Profile
Posts: 161
Reg: Jan 30, 2016
Stonewood
2,210
like
03/01/16 02:00 PM (8 years ago)
Thanks!
 

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.