Within the Project Settings - Minimum API Level and Target API Level not get loaded anyhow! While I have used all default Unity provided settings to export Android build. Here is the image to illustrate this:
Thank you for your quick reply
I have tried to follow the given answer at my best but still, I can’t able to get success.
I want to share screenshots after applying the solution what happened with me:
sdkmanager script updated screenshot:
In the last point, the person said to run the command but this is happening to me:
I am noob in executing commands in Terminal so I don’t know what is going wrong!!
So please suggest me further into this.
I have just downloaded all things from the Unity HUB then also this kind of problem occurring that I can’t able to understand.
NOTE: Recently I have upgraded my Java SE, maybe then after problem get started:
I hope after I remove JDK 13, it will not start creating a problem for other Unity versions.
Because other 2 Unity versions working properly at present
Create NewBehaviourScript.cs, attach it to some GameObject and run
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnGUI()
{
GUILayout.Label(Environment.GetEnvironmentVariable("JAVA_HOME"));
}
}
I think your JAVA_HOME env variable is incorrect, it should point to OpenJDK inside Unity.