Flutter 如何修复';APK使用的权限需要隐私策略:(android.permission.CAMERA)和#x27;播放控制台出错

Flutter 如何修复';APK使用的权限需要隐私策略:(android.permission.CAMERA)和#x27;播放控制台出错,flutter,camera,google-play-console,Flutter,Camera,Google Play Console,我正在将我的Flitter应用程序设置为在游戏机上上载,但它显示错误- “您的APK或Android应用程序包正在使用需要隐私策略的权限:(Android.permission.CAMERA)。” 即使我没有在我的清单文件中使用相机的权限 主/清单文件- 我如何解决此问题?您的一个依赖项必须具有摄像头权限 要删除它,您可以将其添加到清单中: ... ... 它给出了构建错误-出错原因:任务的执行失败:app:generateReleaseBuildConfig'>一旦应用程序依赖项(如

我正在将我的Flitter应用程序设置为在游戏机上上载,但它显示错误- “您的APK或Android应用程序包正在使用需要隐私策略的权限:(Android.permission.CAMERA)。” 即使我没有在我的清单文件中使用相机的权限

主/清单文件-



我如何解决此问题?

您的一个依赖项必须具有摄像头权限

要删除它,您可以将其添加到清单中:


...
...

它给出了构建错误-出错原因:任务的执行失败:app:generateReleaseBuildConfig'>一旦应用程序依赖项(如Gallery或任何库)可能使用,则无法从C:\Users\Azhan Khan\AndroidStudioProjects\simple\U motivation\android\app\src\main\AndroidManifest.xmlchek中读取packageName。首先在项目中找到,您解决了吗?
<!-- 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.WRITE_EXTERNAL_STORAGE" />
<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="Motive Booster"
    android:icon="@mipmap/ic_launcher">
    <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:value="true" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
</application>