小编kof*_*one的帖子

清单中引用的类 io.flutter.app.FlutterApplication 在项目或库中未找到

需要一些帮助我刚开始接触 flutter,不知道我的 AndroidManifest.xml 文件中的错误是什么。在 android:name="io.flutter.app.FlutterApplication" ,android:name=".MainActivity" 中。元数据中也有错误。我不知道该文件是否已损坏,我打开了其他 Android flutter 项目,它在 AndroidManifest.xml 文件上出现了所有相同的错误,但该应用程序运行时没有任何错误或任何错误。现在我添加的权限不起作用。

`

<uses-permission android:name="android.permission.ACCES_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCES_COARSE_LOCATION"/>

<!-- 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="clima"
    android:icon="@mipmap/ic_launcher">
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <!-- Specifies an Android theme to apply to …
Run Code Online (Sandbox Code Playgroud)

android manifest android-manifest android-studio flutter

7
推荐指数
1
解决办法
1265
查看次数