For each Android API, there might be new features added, which can't work on lower API versions. Thus, to fix this, you can just increase the minimum required API in your project.
In your build.gradle (app-module)
, you will find this line:
minSdkVersion 8
Change it to:
minSdkVersion 11
If you didn't find this line in build.gradle
, check your AndroidManifest.xml
and change the minSdkVersion
from 8 to 11 or whatever you want:
<uses-sdk
android:minSdkVersion="11" />
But now your app will only work on API 11+, which is fine. Nobody uses below API 11 these days, so it shouldn't be a problem for you.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…