I the error "unexpected element <queries> found in <manifest>", how to fix it?

16,286

I also had same issue on Android Studio 4.1.1, suddenly, 2 days ago. I solved the issue by upgrading build gradle version.

  • previous setting in build.gradle file of project was:
    classpath("com.android.tools.build:gradle:3.5.3")
    
  • current setting:
    classpath("com.android.tools.build:gradle:3.5.4")
    

The issue was gone immediately. :)

Share:
16,286
haithemB
Author by

haithemB

Updated on June 18, 2022

Comments

  • haithemB
    haithemB about 2 years

    this is the screenshot

    play-services-ads-lite-19.6.0/AndroidManifest.xml:27:5-38:15: AAPT: error: unexpected element <queries> found in <manifest>.

    This is the error.

    • Doug Stevenson
      Doug Stevenson over 3 years
      On Stack Overflow, please don't show pictures of text and code. Copy the text into the question itself and format it so that it's easy to read, copy, and search. You can edit the question to correct this using the edit link at the bottom.
  • haithemB
    haithemB over 3 years
    yeah its done thank you
  • Stanly Medjo
    Stanly Medjo over 3 years
    for me, I also had to update my firebase-analytics to 17.5.0
  • muratoner
    muratoner over 3 years
    Your suggestion solved to my issue. This exception thrown when i use @react-native-firebase/admob package. Thanks, you are saved my time :)
  • Mr. Tacio
    Mr. Tacio over 3 years
    people really are fast to judge saying that the question needs details but somehow this answer the "not clear question". anyways, this also resolves my issue. thanks
  • Kelvin Spencer
    Kelvin Spencer almost 3 years
    heres a better answer stackoverflow.com/a/64524816