AndroidManifest.xml file gives warnings -
Attribute hardwareAccelerated is only used in API level 11 and higher(current min is 1)
Attribute windowSoftInputMode is only used in API level 3 and higher(current min is 1)
And
Should set android:versionCode to specify the application version
Should set android:versionName to specify the application version
Also
App is not indexable by Google Search;
While the app/build.gradle file reads -
compileSdkVersion 28
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger() // 1
versionName flutterVersionName // '1.0'
The warnings started occurring recently without any new upgrades. My older flutter projects never encountered these warnings and are still working fine.
Things I've tried:
- File > Invalidate Caches / Restart.... > Invalidate And Restart
- Just Restart
- Create a different project from start
What resolves the warnings:
<uses-sdk android:minSdkVersion="16"
android:targetSdkVersion="28" />
Using the <uses-sdk.../>
in AndroidManifest.xml resolves the warning(current min is 1) but hence invalidating the use of app/build.gradle file. Any suggestions please?
I'm working on Android Studio 3.2.1