Open Aaron-the-coder opened 3 years ago
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.flutter.laomeng.flutter_upgrade_example"> <application android:name="io.flutter.app.FlutterApplication" android:icon="@mipmap/ic_launcher" android:label="flutter_upgrade_example"> ... <provider android:name="androidx.core.content.FileProvider" android:authorities="com.flutter.laomeng.flutter_upgrade_example.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" tools:replace="android:resource" android:resource="@xml/file_paths" /> </provider> </application> </manifest> 添加provider后,替换authorities为包名,name和resource仍然报错,请问该怎么设置?
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.flutter.laomeng.flutter_upgrade_example"> <application android:name="io.flutter.app.FlutterApplication" android:icon="@mipmap/ic_launcher" android:label="flutter_upgrade_example"> ... <provider android:name="androidx.core.content.FileProvider" android:authorities="com.flutter.laomeng.flutter_upgrade_example.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" tools:replace="android:resource" android:resource="@xml/file_paths" /> </provider> </application> </manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.flutter.laomeng.flutter_upgrade_example"> <application android:name="io.flutter.app.FlutterApplication" android:icon="@mipmap/ic_launcher" android:label="flutter_upgrade_example"> ... <provider android:name="androidx.core.content.FileProvider" android:authorities="com.flutter.laomeng.flutter_upgrade_example.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" tools:replace="android:resource" android:resource="@xml/file_paths" /> </provider> </application> </manifest>
添加provider后,替换authorities为包名,name和resource仍然报错,请问该怎么设置?