Tip unresolved package 'content' is added provider of the application AndroidManifest.xml
<provider
<!--
下一行代码报错
unresolved package 'content'
-->
android:name="android.support.v4.content.FileProvider"
android:authorities="com.wocus.wine.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
Query document shows that the latest Android standard will android.support.v4.content.FileProvider
replace in order androidx.core.content.FileProvider
to change it to
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.wocus.wine.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>