Android SDK level in 4.22

Hi,

After installing 4.22, and the provided CodeWorks, I am unable to build my game. When the build process gets to generating the APK, I get the following errors:

07:52:10 [07:52:10]         [Exec] Requires at least SDK API level 28, currently set to 'android-26'
07:52:10 [07:52:10]         [Exec] ERROR: Can't make an APK without SDK API 'android-28' minimum installed

Should I manually install Android SDK 28?

Did you manage to figure this out? Did you install it manually?

Yes. I worked around the problem by manually installing Android-28 using the SDK command line tools (found here: Download Android Studio and SDK tools  |  Android Developers ), and copying the android-28 folder to C:\NVPACK\android-sdk-windows\platforms

how did you install it i have the same issue but everywhere i look i cant find any info. i have level 28 in my platform folders but it w

my error:
LogPlayLevel: ====5/19/2019 2:11:27 PM====PREPARING TO MAKE APK=================================================================
LogPlayLevel: bBuildForES2: false

LogPlayLevel: bBuildForES31: true

LogPlayLevel: bSupportsVulkan: false

LogPlayLevel: Building Java with SDK API level ‘android-28’

LogPlayLevel: Error: ERROR: System.IO.DirectoryNotFoundException:
Could not find a part of the path ‘C:\NVPACK\android-sdk-windows\build-tools’.

I had the same issue as above,

  1. went to …\NVPACK\android-sdk-windows\tools\
  2. clicked on android.bat to open it
  3. unchecked all options listed (it knew i needed ver 9 and 10 still)
  4. only checked back on the “SDK Platform” for Android 9 and 10
  5. and checked on “Android SDK Platform-tools” to let it update that too
  6. install the 3 packages
  7. Reopened UE4, complied project, and worked just fine.

Let me know if you need a screenshot or two,
Good luck!

This worked perfectly for me, thanks a lot!

Thanks for this :slight_smile:

Bonjour,

j’ai le meme probleme, une ou deux capture d’écran se serait ideal si vous pouvez bien sur
Merci d’avance

Bonjour à vous,

J’ai besoin de votre aide, malgré mes recherches et même avec ce lien : Android SDK level in 4.22 - Mobile - Unreal Engine Forums
je n’arrives toujours pas à tester sur android, je m’expliques : je voudrais juste tester un niveau sur mon téléphone samsung s8+, problème rencontré :

  • no device found (résolu une fois que j’ai réussi à initialiser la commande “adb devices”)
  • quand je lance “launch” sur mon appareil reconnu, j’ai eu
    LogPlayLevel: Error: ERROR: Can’t make an APK without SDK API ‘android-28’ minimum installed
    j’ai donc regarder sur answerhub et installer manuellement Android-28 à l’aide des outils de ligne de commande du SDK
  • actuellement sur la version UE 4.22.2 j’ai device not found encore et malgré un redémarrage et une configuration du projet et même si adb devices fonctionne et reconnait mon tél je ne peux plus tester sur mon appareil puisqu’il n’ait pas reconnu sur unreal engine

J’apprécierais grandement votre aide.

J’ai désinstallé et réinstallé le sdk android et cela a fonctionné. Je ne sais pas si cela fonctionnerait pour vous, mais cela a fonctionné pour moi.

Merci pour le conseil, mais cela ne fonctionne toujours pas, cependant aprés des recherches encore :slight_smile: j’ai trouvé cette vidéo : Installing & Building to Android (AR, VR, Mobile) UE4 / Unreal Engine 4 - YouTube

sa aide beaucoup et on apprend a faire un package pour mobile par le biais de la console windows, reste plus qu’a réglé les matériaux en PBR pour qu’ils soient moins lourd

merci encore pour votre aide