I have 2 unity editor installed, Unity 2018.1.4f1 and Unity 2017.3.0f3. Both are assigned to same SDK and JDK. When I had installed Unity 2018 it had updated SDK to latest version. Now only Unity 2018 gives me options for API level 26 and 27 for android. But unity 2017, which is also assigned same SDK and JDK do not gives me API level higher than 25.
I have projects compatible only to Unit 2017, which are needed to be updated to API level 26 or higher enforced by google.
I have the same question. After uploading a new version of the game and lose and recover the keystore i got the same problem, basically in my unity 2017.1.0f3 that wors magnifically, i don’t got the option to choose the API level 26 . In google play console appear the message ‘Actualmente, el nivel de la API de destino de tu aplicación es el 25 y debe ser al menos el 26 para garantizar que se compile con la API más reciente,’.
You can check PlayerSettings \ Publish Settings \ Custom Gradle Template to use Custom Gradle file to set API manually. For more information, look at Custom Gradle Template.