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

Bug error messages when trying to build apk.

Discussion in 'Android' started by DollarmanGG, Jun 20, 2023.

  1. DollarmanGG

    DollarmanGG

    Joined:
    Oct 7, 2022
    Posts:
    3
    I am doing a course on udemy and following the course I got this errors when trying to build the apk. According to gamedev.tv whoms course I am taking, said that this is issue is not related to their course but say that this probably is an issue with unity. Can some1 elaborate on how I could solve this or get around this or is this a bug on unity version 2022.3.1?

    (Uploaded a picture of the error messages). build error.png
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,659
    You need to attach Editor.log, your screenshot doesn't show full error, but my guess is you need to target API level 33 or higher.
     
  3. DollarmanGG

    DollarmanGG

    Joined:
    Oct 7, 2022
    Posts:
    3
    hmm okay, but Anroid API level 33 or higher is quite high.. The application is a very simple one. I've built several apk to my phone (samsung s20 ultra) without any issues and apparently the highest API level of my phone is lvl 31).
    Anyhow, I was just about to send the editor.log of the error messages but when I closed the unity program and opened up to build to get the errors it suddenly worked with API lvl 27 and higher. Thanks anyway for your reply!
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,659
    Note: Google will soon require you to target API 33 anyways, otherwise you won't be able to submit your app to store.