Deploying android. Execution failed for task ':app:processDebugResources'.

please help with running the game on android. I struggle all day to make it finally go on the phone. I changed the min sdk version to 26 and the target sdk version to 29 but it does nothing, please help

log:

2 Likes

Did you find any solution? I have same issue

1 Like

For packaging your software you need to complete the following:

  1. Open SDK Manager in your Android Studio software (Configure-SDK Manager)
  2. SDK Platforms tab - only Android API 31 checkbox must be checked.
  3. SDK Tools tab - you need to use special script from Epic Games to fill necessary checkbox there. First, close Android Studio. This script is located in Unreal Engine folder. I.e. C:\Program Files\Epic Games\UE_4.27\Engine\Extras\Android. Open “SetupAndroid.bat” in Notepad and change all fields started with “set SDKMANAGER…” to “set SDKMANAGER=%STUDIO_SDK_PATH%\cmdline-tools\8.0\bin\sdkmanager.bat” - there will be couple of them. Save the file. In your UE project open settings-android and accept Android license. Run the script and press buttons if you’ll been asked. Restart your PC. After that a couple of checkboxes in your Studio’s SDK Tools tab will be filled (you can check it), and packaging will be successful.
    I spend a lot of time to find this.