All of a sudden, I am started getting this build error in my Android project: Error: unexpected element <queries> found in <manifest> Understanding the Issue: To understanding why this happens see the above @CommonsWare's answer This is because <queries> tag was introduced with new package visibility options for Android 11 and upwards (SDK 30+). Because of that, you need to update your build.gradle with a version that includes this changes. Below is a list of supported gradle options. The best solution to deal with these errors is to Upgrade your Android Gradle plugin and Update Gradle You’ll have to update your Gradle version to one of the compatible versions that have the latest query tags (which were introduced with Android 11). How to Fix it? To Update the Android Gradle plugin Specify the plugin version in the YourAppDirectory/android/build.gradle file. The plugin version applies to all modules built-in that Android Studio project. The following e...
Explore the dynamic world of AI and its applications through our blog. Discover trending topics like machine learning, computer vision, AI in healthcare and finance, NLP, robotics, and more. Stay informed about the latest AI advancements and ethical considerations.