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. Dismiss Notice

Cannot export game due to unity ads declaring minsdk to be 19

Discussion in 'Unity Ads & User Acquisition' started by coffee_5019, Dec 4, 2020.

  1. coffee_5019

    coffee_5019

    Joined:
    Mar 17, 2020
    Posts:
    1
    When i try to export the game I get this message:
    Manifest merger failed: uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library :)UnityAds:) C:/Users:(My computers user name)/.gradle/caches/transforms-2/files-2-1/a54ab818ec425556c415cfeb31240/AndroidManifext.xml as the library might be using APIs not availible in 16. See the console for details.
     
  2. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    Hey @coffee_5019 unfortunately we had to update the minimum sdk version supported by the Unity Ads SDK due to some feature updates we added.

    Currently we only support Android API 19 and above, otherwise known as Android 4.4 KitKat. According to our stats, 99.8% of our app users are on this version of Android or above.
     
    sarthakdeshmukh723 and shinatoX1 like this.
  3. chistov83

    chistov83

    Joined:
    Dec 4, 2020
    Posts:
    5
    But how can I install API 19?
     
  4. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    API 19 is just another way of saying Android 4.4. What it means is that the Unity Ads SDK will work on any version of Android from 4.4 upwards :)
     
    shinatoX1 likes this.
  5. chistov83

    chistov83

    Joined:
    Dec 4, 2020
    Posts:
    5
    I got last version SDK 30.0
    but still have this error

    Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:UnityAds:] /Users/alpchalp/.gradle/caches/transforms-2/files-2.1/46f4b18716cf042f40cecb739e6106d0/AndroidManifest.xml as the library might be using APIs not available in 16 See the Console for details.
     
  6. chistov83

    chistov83

    Joined:
    Dec 4, 2020
    Posts:
    5
    my problem is - can't build app for Android
     
  7. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    shinatoX1 likes this.
  8. chistov83

    chistov83

    Joined:
    Dec 4, 2020
    Posts:
    5
    could you please advice what exactly file I need to edit, thanks!
     
  9. kyle-unity

    kyle-unity

    Unity Technologies

    Joined:
    Jan 6, 2020
    Posts:
    336
    If you're making a native Android project, you should have an AndroidManifest.xml file.

    If you're building in Unity you can find the setting in Project Settings -> Player -> Other Settings
     
  10. chistov83

    chistov83

    Joined:
    Dec 4, 2020
    Posts:
    5
    Im making in Unity, Food, Thanks!!!
     
    kyle-unity likes this.
  11. ahmedaniss

    ahmedaniss

    Joined:
    Sep 18, 2019
    Posts:
    98