Getting an ‘SDK missing’ error when trying to package a test windows build. First time trying this on UE5 so it’s possible I’m just forgetting a setting somewhere? I’m not seeing a ‘Launch on’ menu or anywhere to update SDK. Where is that located?
More Info:
Under Platform > Windows getting a ‘turnkey returned an error 9009’
I’ve been trying to solve this issue for a week now. I even pushed the error to Chat GPT and it gave me an extensive process to follow… but still resolution. I reinstalled Android Studion and Visual Studio. Was able to package for windows but need it for Android. Any ideas anyone.
Click on the “Download Android Studio” button and follow the prompts to download the installer.
Step 2: Install Android Studio
Run the Installer:
Locate the downloaded file (typically in your Downloads folder) and double-click to run it.
Follow the Installation Wizard:
Click “Next” to proceed through the setup steps.
Choose the installation path (default path is recommended).
Ensure that the boxes for the Android SDK, Android SDK Platform-Tools, and Android SDK Build-Tools are checked.
Complete the installation process.
Step 3: Configure Android Studio
Launch Android Studio:
Open Android Studio after installation is complete.
Complete Initial Setup:
Follow the initial setup wizard to set up Android Studio. It will download additional components as needed.
Configure SDK Manager:
Go to File > Settings (or Configure > SDK Manager from the welcome screen).
Navigate to Appearance & Behavior > System Settings > Android SDK.
Ensure the following are installed:
3. **SDK Platforms:** Install the latest Android SDK and any specific versions required for your Unreal Engine projects.
4. **SDK Tools:** Install the latest versions of Android SDK Build-Tools, Android Emulator, Android SDK Platform-Tools, and Google USB Driver.
Step 4: Set Up NDK, JDK, and Other Tools
Install NDK:
In the SDK Manager, go to the SDK Tools tab.
Check the box for NDK (Side by side) and click Apply to install.
Install JDK:
Android Studio comes with a bundled JDK, but if you need a specific version like JDK 11:
2. Download JDK 11 from the [Oracle JDK download page](https://www.oracle.com/java/technologies/javase-jdk11-downloads.html) or use the bundled one.
3. Install JDK 11 by running the installer.
Step 5: Integrate with Unreal Engine 5.4
Open Unreal Engine 5.4:
Launch Unreal Engine from the Epic Games Launcher.
Configure Android SDK, NDK, and JDK:
Go to Edit > Project Settings > Platforms > Android SDK in Unreal Engine.
Set the paths for the SDK, NDK, and JDK:
2. **SDK:** Typically located at **C:\Users\<YourUsername>\AppData\Local\Android\Sdk**
3. **NDK:** Typically located in a subfolder of the SDK, e.g., **C:\Users\<YourUsername>\AppData\Local\Android\Sdk\ndk\XX.X.X** (where XX.X.X is the version number)
4. **JDK:** If using the bundled JDK, it will be in the Android Studio installation directory. If using JDK 11, set it to **C:\Program Files\Java\jdk-11.X.X**
Run Setup Script:
Navigate to the Engine\Extras\Android folder in your Unreal Engine installation directory.
Run the SetupAndroid.bat script to set environment variables automatically.
Step 6: Verify Configuration in Unreal Engine
Verify Paths:
Go to Edit > Project Settings > Platforms > Android SDK in Unreal Engine.
Ensure the SDK, NDK, and JDK paths are correctly set. Adjust if necessary.
Configure Project for Android:
Go to Edit > Project Settings > Platforms > Android.
Set up your project settings for Android, including permissions and package details.
Step 7: Build and Test
Create or Open a Project:
Create a new project or open an existing project in Unreal Engine.
Package the Project:
Go to File > Package Project > Android and choose the appropriate configuration (e.g., Android (ETC2), Android (ASTC), or Android (DXT)).
Deploy to an Android Device:
Connect your Android device via USB.
Enable Developer Mode and USB Debugging on your Android device.
Deploy the built project to your device for testing.
Troubleshooting Tips
Check for Updates: Ensure all software components (Unreal Engine, Android Studio, SDK, NDK, JDK) are up-to-date.
Environment Variables: Verify that environment variables for SDK, NDK, and JDK are correctly set.
Dependencies: Make sure all required dependencies are installed.
Following these steps should help you set up Android Studio for Unreal Engine 5.4 on Windows, allowing you to build and deploy Android applications successfully.