Couldn‘t find meta-data for provider with authority com.wust.camerademo
Posted 我想月薪过万
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Couldn‘t find meta-data for provider with authority com.wust.camerademo相关的知识,希望对你有一定的参考价值。
报错信息
Couldn't find meta-data for provider with authority com.wust.camerademo
报错原因
androidManifest.xml 清单文件中未注册 provider
解决方法
第一步:在 AndroidManifest.xml 中配置 provider
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.wust.camerademo"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
第二步:res/xml/file_paths.xml编写配置信息
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<!--files-path 相当于 getFilesDir()-->
<files-path name="my_images" path="images"/>
<!--cache-path 相当于 getCacheDir()-->
<cache-path name="lalala" path="cache_image"/>
<!--external-path 相当于 Environment.getExternalStorageDirectory()-->
<external-path name="external-path" path="senseone"/>
<!--external-files-path 相当于 getExternalFilesDir("") -->
<external-files-path name="paly" path="freeSoft"/>
<!--external-cache-path 相当于 getExternalCacheDir() -->
<external-cache-path name="lei" path="."/>
...
</paths>
以上是关于Couldn‘t find meta-data for provider with authority com.wust.camerademo的主要内容,如果未能解决你的问题,请参考以下文章
运行爬虫遇到奇葩的问题 bs4.FeatureNotFound: Couldn‘t find a tree builder with the features you requested: lxml.
uild, but the tool couldn’t find it.
Scaling dynos... ! ! Couldn't find that process type (web).