当前位置: 首页 > 知识库问答 >
问题:

Flutter未找到动作栏

国斌斌
2023-03-14

错误:处理清单失败。

任务': app: Process ReleaseResources'执行失败。

Android资源链接失败
/Users/RaymondTucker/AndroidStudioProjects/layzey/user-master 5/build/app/中间产品/merged_manifests/发布/AndroidManifest.xml:59:AAPT:错误:资源样式/Theme.AppCompat.Light.NoActionBar(又名com.layzeyapp.user:样式/Theme.AppCompat.Light.NoActionBar)未找到。

Android清单文件

<!-- 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. -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="user"
    android:icon="@mipmap/ic_launcher">

    <meta-data android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id"/>

    <activity android:name="com.facebook.FacebookActivity"
        android:configChanges=
            "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />

    <activity
        android:name="com.facebook.CustomTabActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>

    <activity
        android:name="com.yalantis.ucrop.UCropActivity"
        android:screenOrientation="portrait"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data android:name="com.google.android.geo.API_KEY"
        android:value="AIzaSyCoAzIWcx-pKh3GCWaWBdV2yV0QygSN0HY"/>
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        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:resource="@drawable/launch_background" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
        <intent-filter>
            <action android:name="FLUTTER_NOTIFICATION_CLICK" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
</application>

共有1个答案

广宏远
2023-03-14

问题不在于android,而是因为你的一些包,我面临这个问题是因为我的谷歌地图包,你可以删除你添加的最后一个包,清理并运行,希望它会修复你的问题。

 类似资料:
  • 颤振 - 我试图为我的颤振应用程序运行 firebase 身份验证以进行用户身份验证,但我遇到了很多错误。目前,我遇到“致命错误:”GoogleUtilities/GULAppEnvironmentUtil.h“文件未找到#import 你能帮帮我吗?我错过了什么? 下面是我的 podfile.lock

  • 我无法为iOS构建颤动项目,给我的错误如下 尝试 吊舱拆卸 rm ios/颤抖/颤抖。podspec 颤振清洁 扑扑酒吧获取 吊舱安装 清除导出数据 颤振运行 仍然一样,我无法摆脱这个错误。我甚至尝试从pubsec.yaml中删除路径提供程序插件 任何帮助都将非常感谢,因为我已经坚持了24小时

  • 我在为ios编译应用程序时遇到了这个问题 这是整个堆栈跟踪: 在调试模式下在iPhone Xs Max上启动lib / main.dart...正在运行的吊舱安装...运行 Xcode 构建...Xcode 构建完成。 2,4 秒 无法构建 iOS 应用程序 Xcode 构建的错误输出: ↳ ** 构建失败 ** Xcode的输出: ↳ === BUILD TARGET Firebase Auth

  • 我已经通过AUR安装了。我还安装了。当我运行时,我得到: 首先,运行,并收到: 不知道“看哪一个扑在你的路上”到底是什么意思。接下来我运行并得到: 但是,如果我cd到中,我会得到:

  • 我安装了flutter,它运行良好,但更新到最新版本后,flutter找不到android sdk管理器。我尝试运行flutter医生并尝试安装android许可证,但错误“未找到Android SdkManager”。我在此处附加了命令提示符的图像。 这是我已经尝试过但不起作用的方法… 我的android工作室安装了cmd工具,所以我卸载并重新安装了它。 更改了路径设置,将sdk路径添加到环境变

  • 我正在尝试使用触发器运行Azure网络作业,但我的时间作业方法没有触发。我收到了下面的消息。 未找到工作职能。尝试将您的作业类和方法公开化。如果您正在使用绑定扩展(例如ServiceBus、定时器等。)确保您已经在启动代码中调用了扩展的注册方法(例如config。UseServiceBus()、config。使用定时器()等。). 我正在使用配置。UseTimers() 但仍显示消息。不确定以下代