Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 我在AndroidManifest.xml中遇到了太多错误。我怎样才能解决它们?_Flutter_Dart - Fatal编程技术网

Flutter 我在AndroidManifest.xml中遇到了太多错误。我怎样才能解决它们?

Flutter 我在AndroidManifest.xml中遇到了太多错误。我怎样才能解决它们?,flutter,dart,Flutter,Dart,以下是我的代码: 我得到的错误是: 未解析的类“应用程序” 属性:此处不允许使用图标 未解析的类“MainActivity” 属性:此处不允许启动模式 属性:此处不允许使用主题 属性:此处不允许配置更改 属性android:此处不允许硬件加速 属性android:此处不允许WindowsOfInputMode 您可以一个接一个地解决这些问题,并一路学习;)但是怎么做呢?这就是问题所在:)展示你所做的努力,以及你在解决这些问题时遇到的错误。不要期望所有8个错误都有现成的解决方案。。。显示您的努

以下是我的代码: 我得到的错误是:

  • 未解析的类“应用程序”
  • 属性:此处不允许使用图标
  • 未解析的类“MainActivity”
  • 属性:此处不允许启动模式
  • 属性:此处不允许使用主题
  • 属性:此处不允许配置更改
  • 属性android:此处不允许硬件加速
  • 属性android:此处不允许WindowsOfInputMode
  • 
    
    您可以一个接一个地解决这些问题,并一路学习;)但是怎么做呢?这就是问题所在:)展示你所做的努力,以及你在解决这些问题时遇到的错误。不要期望所有8个错误都有现成的解决方案。。。显示您的努力。@sourabhjambale,您可以忽略这些错误并继续构建。它会成功的。
    <!-- The INTERNET permission is required for development. Specifically,
         flutter needs it to communicate with the running application
         to allow setting breakpoints, to provide hot reload, etc.
    -->
    <uses-permission android:name="android.permission.INTERNET"/>
    
    <!-- io.flutter.app.FlutterApplication is an android.app.Application that
         calls FlutterMain.startInitialization(this); in its onCreate method.
         In most cases you can leave this as-is, but you if you want to provide
         additional functionality it is fine to subclass or reimplement
         FlutterApplication and put your custom class here. -->
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="BMI Calculator"
        android:icon="@mipmap/bmi_calculator">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- This keeps the window background of the activity showing
                 until Flutter renders its first frame. It can be removed if
                 there is no splash screen (such as the default splash screen
                 defined in @style/LaunchTheme). -->
            <meta-data
                android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
                android:value="true" />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>