Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Cannot build for Android 11(API Level 30) - Unity 2019.4

Discussion in 'Editor & General Support' started by widogame, Dec 29, 2020.

  1. widogame


    Jul 20, 2020
    Hi there,
    We use some third party Unity plugins that targets to Android 11(you can try with newest Firebase Unity SDK).
    We got build failed with the following error message:
    "Android resource linking failed /Users/sample/AndroidStudioProjects/MyApp/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml:18: error: unexpected element <queries> found in <manifest>".
    The Unity version I used is 2019.4.16f, I went to temporary solution to use external Gradle to work around it, but it's not in the long term, because it'll not work on the Unity Cloud Build.
    I'm not sure this issue is going to happen in Unity 2020.x or not. Do you guys planing to upgrade Gradle to newer version to fix this issue on Unity 2019.4.x?

    Here is the work-around solution: