I am working on a project: creating an app for an old android device with Android Studio. But the problem is targetting the correct API Level (9) and appcompat from gradle.
I did some modifications like: inserting in AndroidManifest.xml the following:
<uses-sdk android:minSdkVersion="9" />
removed in gradle.xml from dependencies :
implementation 'com.android.support:support-v4:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
I set the Compile Sdk Version to API 9: Android 2.3 (Gingerbread) and Min Sdk Version to API 9: Android 2.3 (Gingerbread)
I also removed from the main class the inheritance from AppCompat and changed it to Activity.
But even with all these tweaks it still won't build.What else can I do?