I had the same problem. Finally I solved it. This is called "Manuel Migration to AndroidX." I followed the instructions in this video: https://www.youtube.com/watch?v=0FZ_eUIsLTg
and the problem is resolved.
The key factor is updating compileSdkVersion to the latest version. and it is recommended to update all versions in the build.gradle, app / build.gradle, pubspec.yaml files.
then Android Studio successfully manages the migration, and the ActivityNotFoundException problem is resolved.
And the last reminder for the Turkish guys. You should modify these keywords (in app / build.gradle) as follows:
testImplementation → testİmplementation
androidTestImplementation → androidTestİmplementation
source share