抖动AndroidManifest警告-当前最小值为1

Cha*_*nya 5 android android-manifest build.gradle android-min-sdk flutter

AndroidManifest.xml文件发出警告-

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)
Run Code Online (Sandbox Code Playgroud)

Should set android:versionCode to specify the application version
Should set android:versionName to specify the application version
Run Code Online (Sandbox Code Playgroud)

App is not indexable by Google Search;
Run Code Online (Sandbox Code Playgroud)

当app / build.gradle文件读取时-

compileSdkVersion 28
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger() // 1
versionName flutterVersionName // '1.0'
Run Code Online (Sandbox Code Playgroud)

这些警告是最近开始发生的,没有任何新的升级。我较早的flutter项目从未遇到过这些警告,并且仍然可以正常工作。

我尝试过的事情:

  1. 文件>使高速缓存无效/重新启动...。>使无效并重新启动
  2. 刚重启
  3. 从头开始创建另一个项目

解决警告的原因:

<uses-sdk android:minSdkVersion="16"
 android:targetSdkVersion="28" />
Run Code Online (Sandbox Code Playgroud)

<uses-sdk.../>AndroidManifest.xml中使用可以解决警告(当前最小值为1),但因此使app / build.gradle文件的使用无效。有什么建议吗?

我正在使用Android Studio 3.2.1

AKB*_*BON 1

这对我有用

使用这些命令来清理和修复插件。

$ flutter clean
$ flutter pub cache repair
Run Code Online (Sandbox Code Playgroud)

应用程序/build.gradle:

android {
    namespace 'com.akbon.app' / add your package name
    compileSdk 33
    ndkVersion flutter.ndkVersion
    defaultConfig {
        applicationId "com.akbon.app" / add your package name
        minSdkVersion 21
        targetSdkVersion 33
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }
// 
Run Code Online (Sandbox Code Playgroud)

AndroidManifest.xml:

<application
    android:name="${applicationName}"
    tools:targetApi="33" 
//
Run Code Online (Sandbox Code Playgroud)