30
FileProvider-IllegalArgumentException : 구성된 루트를 찾지 못했습니다.
카메라로 사진을 찍으려고하는데 다음과 같은 오류가 발생합니다. FATAL EXCEPTION: main Process: com.example.marek.myapplication, PID: 6747 java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.example.marek.myapplication/files/Pictures/JPEG_20170228_175633_470124220.jpg at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:711) at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:400) at com.example.marek.myapplication.MainActivity.dispatchTakePictureIntent(MainActivity.java:56) at com.example.marek.myapplication.MainActivity.access$100(MainActivity.java:22) at com.example.marek.myapplication.MainActivity$1.onClick(MainActivity.java:35) AndroidManifest.xml : <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.example.marek.myapplication.fileprovider" android:enabled="true" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> </provider> 자바: Intent takePictureIntent = new …