I'm updating the very old project to the latest SDK version 32. While updating IDE shows, If Apps targeting Android 12 and higher are required to specify an explicit value for android:exported
when the corresponding component has an intent filter defined. So that I add exported tag for all activities, Set the value true for Launching activity and set it false for other Activities and services.
android:exported="true"
Adding the Gradle script below.
compileSdkVersion 31
buildToolsVersion '32.0.0'
defaultConfig {
applicationId "xx.xxxyyyxxx.xxx"
minSdkVersion 21
targetSdkVersion 31
versionCode 81
versionName "0.0.81"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
After the update, the App icon is visible but the app won't open when I click on it. When clicking on it, it shows the toast message "App not found". Any idea about this? How do I sort this out?