Saltar al contenido

Ejemplo de código de descarga de Android SDK Tools Unity

Al fin después de mucho trabajar pudimos dar con la respuesta de este inconveniente que ciertos de nuestros lectores de nuestro sitio han tenido. Si tienes algo más que aportar no dejes de aportar tu comentario.

Ejemplo 1: actualizar manualmente SDK Unity

//Step 1: Go to your .android folder (Default is at C:Users*Your-Name*.android).
//If there's a CFG file calles repositories there, great. If not, open notepad, create
//an empty cfg file called repositories.
//Step 2: Go to your SDK-tools-bin folder 
//(Default - C:Program FilesUnityHubEditor*your-unity-version-here*EditorDataPlaybackEnginesAndroidPlayerSDKtoolsbin)
//Step 3: Open command prompt as admin.
//Step 4: Run the sdkmanager.bat file that's in the folder of step 2 using cmd as so:
//sdkmanager "platform-tools" "platforms;android-*desired API level*"
//Step 5: Command Prompt will show you the Terms and Conditions of the software. type y at the end to confirm.
//This should work. Note that * marks stuff you should change.

//Problems I've had:
//1. If after typing y there's an error, you've probably ran CMD not as an admin.
//2. If there's still an error in unity, make sure the "Target API Level" in unity hasn't changed (mine did).

Ejemplo 2: cambiar la unidad de versión de Android SDK

Edit > Project Settings > Player. Under Per-Platform Settings, click the Android tab, and then click on Other Settings to expand the section. Change the Minimum API Level to Android 2.2 'Froyo' (API level 8) or higher

valoraciones y reseñas

Eres capaz de asentar nuestro ensayo poniendo un comentario y puntuándolo te lo agradecemos.

¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)



Utiliza Nuestro Buscador

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *