-1

So I've just upgraded my Flutter to Flutter 2, while facing incompatibilities here and there I found an error regarding connection due to the platform that I'm using is not secure yet. So I followed the solution provided from here. But whenever I put a new line, save it, and run the project the lines keep missing.

Here's the snippet of my manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mr.flutter.plugin.filepicker" >

    <uses-sdk android:minSdkVersion="16" />

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

    <queries>
        <intent>
            <action android:name="android.intent.action.GET_CONTENT" />

            <data android:mimeType="*/*" />
        </intent>
    </queries>

</manifest>
racfac
  • 11
  • 3

1 Answers1

1

My guess here is that you're editing the wrong AndroidManifest.xml.

The AndroidManifest.xml you have to edit is located in android/app/main/AndroidManifest.xml

The snippet you provided looks like the AndroidManifest of the debug folder which is re-created every build (which explains why your modifications are erased)

FDuhen
  • 4,097
  • 1
  • 15
  • 26