Error:

sdk / jdk issues while building in unity

Solution:

Make sure android module is installed using unity hub

  1. installs - correct version of unity
  2. settings icon on right hand corner of the version
  3. add modules
  4. make sure
    • android build support
    • OpenJDK
    • Android SDK and NDK tools are installed
  5. if adding them doesn’t fix anything, delete and reinstall that version of unity including all these packages

Software:

Unity