Home>

Currently, I would like to create an application that uses the camera function in Android Studio. However, even though Sync and Build are working fine, I am running into trouble that the emulator does not start. I think the Android Manifest issue is one of the possible causes.

Unresolved package'content'
Unresolved class'FileProvider' (both in provider in AndroidManifest)

Applicable source code


package="com.example.cameraapp">


android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">





android:name="android.support.v4.content.FileProvider"
android:authorities="com.example.cameraapp"
android:exported="false"
android:grantUriPermissions="true">
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_path"
/>

What I tried

Open AVD Manager → Open the settings of Pixel API 29 and changed Front and Back of Camera to "Emulated", but it did not change in particular.

Supplemental information (FW/tool ​​version, etc.)

Android Studio 3.6.3

About the emulator used
・Pixel2 API 29
・Resolution:1080×1920:420dpi
・Target:Android 10.0
・CPU: x86

buildToolsVersion:29.0.3
minSdkVersion:29
targetSdkVersion:29