I am trying to decrease my Android SDK version from 25 to 22. The reason is that when I run the program Android asks the user if it can record them. This is not ideal because users will then be afraid to use it.
- I have tried Microphone permission but I have read that this permission does not work due to it being a a permission-group.
I have read that using SDK 22 will allow users to agree to Record_Audio upon app installation. The problem here is that when I do that several errors appear including:
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
This error is appearing inside build files debug/values-v23/values-v23.xml and v24.
I have downgraded compileSdkVersion to 22, target sdk version to 22.0.1. Installed 22.0.1 build tools and downgrading com.android.tools.build:gradle to 2.2.3. So far everything I have tried has still caused these errors, any help will be appreciated.
I am also asking this question to discover if there is a way to allow an app to use the microphone to without needing Record_Audio. Furthermore, if there was a way to ask this permission while using different language, that would also be preferable.