Hello. I work with Android Studio. When creating a module in a project, the IDE automatically sets Compile sdk version = 23. But I need version 21. I changed the version in the properties of the module screenshot , but I still have the themes of the 23rd version, and, accordingly, knocks an error:

C:\Users\hasana\AndroidStudioProjects\Androidlessons\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'. 

screenshot .

  • Do not you use the library version 23, for example appcompat ? - pavel
  • @pavel Right, I deleted it from Gradle, but now there's a problem with the themes? because it uses the "Theme.AppCompat.Light.DarkActionBar". Do not tell me how to disable the use of the appcompat library in the studio? - Giorgi Gusakov
  • better not disconnect, just change the numbers 23 in the title to 21 . But do not remove from gradle - pavel
  • and you can ask why you need compileSdkVersion 21? what does not suit 23? - xkor
  • The @xkor method I use was removed in version 23. - Giorgi Gusakov

1 answer 1

You confuse everything a little, leave compileSdkVersion as it is, i.e. 23 , and configure targetSdkVersion as you need:

 android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { ... targetSdkVersion 21 ... } } 
  • Indeed. Thank. - Giorgi Gusakov