I have built my android application with the following build.gradle details:
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.example.test"
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
}
When I tried to change the compileSdkVersion, I got several errors:
Error:(41, 5) No resource found that matches the given name: attr 'android:borderlessButtonStyle'.
Error:(41, 5) No resource found that matches the given name: attr 'android:buttonBarStyle'.
Error:(41, 5) No resource found that matches the given name: attr 'android:windowCloseOnTouchOutside'.
Error:(46, 5) No resource found that matches the given name: attr 'android:borderlessButtonStyle'.
Error:(46, 5) No resource found that matches the given name: attr 'android:buttonBarStyle'.
Error:(46, 5) No resource found that matches the given name: attr 'android:windowCloseOnTouchOutside'.
Error:(57, 5) No resource found that matches the given name: attr 'android:actionModeCopyDrawable'.
Error:(57, 5) No resource found that matches the given name: attr 'android:actionModeCutDrawable'.
Error:(57, 5) No resource found that matches the given name: attr 'android:actionModePasteDrawable'.
Error:(57, 5) No resource found that matches the given name: attr 'android:buttonBarButtonStyle'.
Error:(57, 5) No resource found that matches the given name: attr 'android:buttonBarStyle'.
Error:(57, 5) No resource found that matches the given name: attr 'android:textColorAlertDialogListItem'.
Error:(57, 5) No resource found that matches the given name: attr 'android:textColorHighlightInverse'.
Error:(57, 5) No resource found that matches the given name: attr 'android:textColorLinkInverse'.
Error:(57, 5) No resource found that matches the given name: attr 'android:windowActionBar'.
Error:(108, 5) No resource found that matches the given name: attr 'android:actionModeCopyDrawable'.
Error:(108, 5) No resource found that matches the given name: attr 'android:actionModeCutDrawable'.
Error:(108, 5) No resource found that matches the given name: attr 'android:actionModePasteDrawable'.
Error:(108, 5) No resource found that matches the given name: attr 'android:buttonBarButtonStyle'.
Error:(108, 5) No resource found that matches the given name: attr 'android:buttonBarStyle'.
Error:(108, 5) No resource found that matches the given name: attr 'android:textColorAlertDialogListItem'.
Error:(108, 5) No resource found that matches the given name: attr 'android:textColorHighlightInverse'.
Error:(108, 5) No resource found that matches the given name: attr 'android:textColorLinkInverse'.
Error:(108, 5) No resource found that matches the given name: attr 'android:windowActionBar'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
I have gone through some links but still have some doubts:
- https://medium.com/google-developers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd#.5iwgderha
- Compile android project with a higher sdk
- AppCompat v7 r21 returning error in values.xml?
- Run app with higher SDK on lower SDK
What I am concerned about is whether this app is going to work well on all the sdk versions between 8-23 if I am compiling it with sdk version 23.
Besides, is it possible and advisable to change compileSdkVersion to 8 and will it change the app's performance in any way to do so?
Any suggestions is highly appreciated.