I started an android project in android studio. The target and compile sdk version was set to 24 by default. I wanted to decrease the target and compile sdk version to 21 and when I changed it in build.gradle(app) to 21 and synced the project ,it is showing the following errors:
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Information:BUILD FAILED
C:\Users\panwa\Desktop\1989\Tasks\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml
Error:(34) 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 'C:\Users\panwa\AppData\Local\Android\Sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
How to change it so that no error occurss and secondly is there any way that we set target sdk version to be 21 from the begining of the project because by default it sets them to 24.