在项目或库中找不到清单中引用的类androidx.core.content.FileProvider
我正在尝试从pub.dev安装一个包,它需要将添加到android清单中 直到我得到上面的错误在项目或库中找不到清单中引用的类androidx.core.content.FileProvider,android,flutter,Android,Flutter,我正在尝试从pub.dev安装一个包,它需要将添加到android清单中 直到我得到上面的错误 <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.abc.def">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.abc.def">
<provider
更新你的gradle-like
kotlin_版本=1.5.0
com.android.tools.build:gradle版本
希望,问题会得到解决
android:name="androidx.core.content.FileProvider" //<<<==========================
android:authorities="${applicationId}.com.shekarmudaliyar.social_share"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>