[Android/안드로이드] Couldn't find meta-data for provider with authority io.reactivex.android.provider 버그 픽스 방법

2020. 4. 7. 12:32Android/Error 대응

[원인] 

- 카메라 실행시 나타나는 버그 

 

[해결방법]

  • AndroidManifest.xml 
    • applicationId은 package name 
<application
...

  <provider
    android:name="androidx.core.content.FileProvider"
    android:authorities="${applicationId}.provider"
    android:exported="false"
    android:grantUriPermissions="true">
      <meta-data
      android:name="android.support.FILE_PROVIDER_PATHS"
      android:resource="@xml/file_paths" />
  </provider>
</application>
  • res/xml/file_paths.xml 생성 
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path
        name="external_files"
        path="."/>
</paths>