# Cant build for Oculus Quest 2 with Unreal 4.27 and FMOD

**URL:** https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723
**Category:** Unreal Engine
**Tags:** ue4
**Created:** [May 4, 2022, 9:22pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723 "2022-05-04T21:22:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 4, 2022, 9:22pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/1 "2022-05-04T21:22:33Z")

</div>

The FMOD plugin works on the Unreal editor, but it ives us some error messages when trying to build. This error comes when we have the plugin in our project: Missing precompiled manifest for ‘FMODStudio’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in FMODStudio.build.cs to override.  
PackagingResults: Error: Missing precompiled manifest for ‘FMODStudio’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in FMODStudio.build.cs to override.

Also using the Plugin in the Engine gives us an error. We just cant build for Android - Oculus Quest 2.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 6, 2022, 6:52am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/2 "2022-05-06T06:52:34Z")

</div>

What version of FMOD are you using? Do you have the plugin in the Engine or Project directory? Can you please share the entire log output?

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 6, 2022, 7:51pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/3 "2022-05-06T19:51:08Z")

</div>

Thank you for your answer Jeff. We are going to add FMOD studio plugin again to replicate and take screenshots. We tried both with the plugin in the engine and in the project. On each case it was a different error message. But we will bring the screenshots later today. We used FMOD studio 2.02.06, and we could connect our project and sounds to Unreal, the music could came out through the editor. We didnt try to make a PC package, but we will try that too.

As in the original post, the error that came when we tried to build was when we placed the plugin in the project only.

Edit: We also are using the 2.02.06 version of the plugin for Unreal.

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 6, 2022, 9:01pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/4 "2022-05-06T21:01:36Z")

</div>

This is a screenshot WITHOUT the plugin. The build was succesful

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/a/ab532407a20d386868008d67a9613f9e623b9038.jpeg)

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 6, 2022, 9:07pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/5 "2022-05-06T21:07:03Z")

</div>

This a failed packaging. For this case the plugin was added on the project files.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/3/3b1933808e20f6251fef2aea84a5a6f3e20d9194.jpeg)  
I couldnt add a second image, but we made sure that the plugin is turned on the plugin manager from the editor.

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 6, 2022, 9:24pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/6 "2022-05-06T21:24:13Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/f/f7ead72310365608d26b2b3979e91e238817c8cf.jpeg)  
This is having the plugin added on the Engine Plugin Folders.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 16, 2022, 6:50am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/7 "2022-05-16T06:50:59Z")

</div>

Thank you for the logs additional information, and apologies for the delayed response.  
There are also errors about missing asset lookup and banks. Can you please tell me the following:

- Do you have any banks in the “ **Content/FMOD/Desktop** ” directory?
- Did you run the [FMOD Validator](https://fmod.com/resources/documentation-unreal?version=2.02&page=user-guide.html#automatically)?
- Have you added an AndroidGame.ini file as per the [Android Platform Specific](https://fmod.com/resources/documentation-unreal?version=2.02&page=platform-specifics.html#android) section of the docs?
- Are you using any 3rd party plugins in your project, such as Resonance Audio?
  - If so, have you followed the steps in the Android Platform Specific section of the docs to add a “{pluginName}\_APL.xml” file?

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 16, 2022, 7:47pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/8 "2022-05-16T19:47:56Z")

</div>

Hello Jeff. We will run it with the project banks. But our first build tests we did Validated our FMOD project and we could use the banks or listen to them in the editor with no specific comments or unexpected results. Only on the build we find these errors. We tried with the plugin on our project, on our engine and both. We dont have any plugins around audio or that we have checked that create any issues.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 24, 2022, 12:11am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/9 "2022-05-24T00:11:04Z")

</div>

> [@jeff\_fmod](#):
>
> Have you added an AndroidGame.ini file as per the [Android Platform Specific](https://fmod.com/resources/documentation-unreal?version=2.02&page=platform-specifics.html#android) section of the docs?

Can you please confirm you have added the AndroidGame.ini file as well? This one is important for ensuring banks are packaged correctly.

If you have a C++ project, have you added “FMODStudio” to your [PrivateDependencyModuleNames](https://fmod.com/resources/documentation-unreal?version=2.02&page=user-guide.html#programming-with-fmod-for-unreal)?

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 25, 2022, 9:24pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/10 "2022-05-25T21:24:29Z")

</div>

Thanks Jeff, we weren´t aware of this steps or requirements. We will follow these steps and reply you about what we find. 🙂

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 27, 2022, 1:20am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/11 "2022-05-27T01:20:47Z")

</div>

Hello @jeff_fmod . I checked the documentation. I created the \_APL.xml file, but i couldnt find my AndroidGame.ini file. Is it supposed to be on the files of the plugin or even on my project files? I havent been able to find it or “create it”. Also added “FMODStudio” to `PrivateDependencyModuleNames`. This is the output (also validated fmod in the project)

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/4/4ae02697067a19f4e8d55ddbbf59c68fdc5da2be.jpeg)

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 27, 2022, 1:24am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/12 "2022-05-27T01:24:30Z")

</div>

@jeff_fmod Hello Jeff, as I understand there should be the “mobile” folder here, to find the AndroidGame.ini file, but there isnt.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/e/e047ff2824e41f034d14bfec53807ea10a198fb3.png)

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 27, 2022, 1:43am UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/13 "2022-05-27T01:43:20Z")

</div>

> [@ShujoSLX](#):
>
> I created the \_APL.xml file, but i couldnt find my AndroidGame.ini file. Is it supposed to be on the files of the plugin or even on my project files? I havent been able to find it or “create it”.

Thank you for giving that a shot, here are the steps in more detail:

1. Go to the root diectory of your project. In this case “IOVR”
2. Open the “Platforms” directory
3. Open the “Android” directory
  - If there is no “Android” folder in here, right click inside and select _New\>Directory_, and change the directory name to “Android”

4. Open the “Config” directory
  - If there is no “Config” folder in here, right click inside and select _New\>Directory_, and change the directory name to “Config”

5. Right click inside the directory and select _New\>Text Document_, and change the file’s name to “AndroidGame.ini”
6. Open the newly created “AndroidGame.ini” file in a text editor and add the following lines:

```auto
[/Script/UnrealEd.ProjectPackagingSettings]
-DirectoriesToAlwaysStageAsNonUFS=(Path="FMOD/Desktop")
+DirectoriesToAlwaysStageAsNonUFS=(Path="FMOD/Mobile")

```

7. Save and close the file

> [@ShujoSLX](#):
>
> I understand there should be the “mobile” folder here, to find the AndroidGame.ini file, but there isnt.

You will need to build your banks for the mobile platform:

1. In your FMOD Studio project go to _Edit\>Preferences\>Build_
2. Look in the “Project Platforms” section. If you do not already have a platform configuration called “Mobile” then right click and select _Add Platform\>Mobile_
3. Close the preferences window and go to _File\>Build All Platforms_

There should be a Mobile subdirectory after this step.

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 27, 2022, 6:32pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/14 "2022-05-27T18:32:41Z")

</div>

Hello @jeff_fmod thank you for replying. I could add Mobile as a project platform, and the mobile platform did appear. But on my project files i couldnt find a “Platforms” named folder. I will try creating it on the root directory as you mention on the steps.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/8/80ad7edfc2b85df1ff9182f3578502fb0d4bac2c.png)  
Maybe this folder thing is because we are on UE 4.27?  
This is what we got by creating the platform folder, activating Android platform on the editor (apparently I didnt have it activated on my computer), and adding the mobile platform on the fmod project, building to all paltforms.

I created two pastes just in case, of the log.txt:

[https://justpaste.it/45px5](https://justpaste.it/45px5)

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 27, 2022, 6:33pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/15 "2022-05-27T18:33:24Z")

</div>

The output log from the last build try:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/229ae470f4f8c9a87aeef97cc751d2e534b8288e.png)

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [May 29, 2022, 11:21pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/16 "2022-05-29T23:21:46Z")

</div>

> [@ShujoSLX](#):
>
> But on my project files i couldnt find a “Platforms” named folder. I will try creating it on the root directory as you mention on the steps.

Correct, if any directories/files are missing, just create them. Looking at your log, the error `The following directories are set to be staged, but contain restricted folder names ("Desktop");` has now been fixed.

> [@ShujoSLX](#):
>
> The output log from the last build try:

This error is not related to FMOD- but I have come across this before and found that following the steps here worked around the issue: [Android Studio error "Installed Build Tools revision 31.0.0 is corrupted" - Stack Overflow](https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted)

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 30, 2022, 6:55pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/17 "2022-05-30T18:55:03Z")

</div>

@jeff_fmod Hello Jeff, we could correct our gradle error and create a build without errors. After validating femod we tested our build on Ouclus Quest 2, and it closes the application. We removed the plugin fmod and the fmod content folder and it ran. Would you recomend to try another version of fmod or unreal?

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [May 30, 2022, 6:56pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/18 "2022-05-30T18:56:30Z")

</div>

Also, weve found an error about naming the folder desktop, as it has a restriction on the name. We changed the name of the folder and the build worked (we think we might not need that folder four oculus quest as it is a mobile app), and then we found that the app closed as stated in the last reply.

---

<div class="post-metadata">

### Author: ![jeff\_fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/jeff_fmod/32/1766_2.png) [@jeff\_fmod](https://qa.fmod.com/u/jeff_fmod)
#### Post date: [June 5, 2022, 10:16pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/19 "2022-06-05T22:16:21Z")

</div>

> [@ShujoSLX](#):
>
> Would you recomend to try another version of fmod or unreal?

That is unlikely to help, you will need some logging information to determine the cause of the crash. Can you please share a log from the start of the application up until the crash?

> [@ShujoSLX](#):
>
> Also, weve found an error about naming the folder desktop, as it has a restriction on the name.

This issue is solved by [creating the AndroidGame.ini file](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/13). Did you create this file?

---

<div class="post-metadata">

### Author: ![ShujoSLX](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@ShujoSLX](https://qa.fmod.com/u/ShujoSLX)
#### Post date: [June 6, 2022, 4:48pm UTC](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723/20 "2022-06-06T16:48:40Z")

</div>

We could create the AndroidGame.ini file, and as i comment you we could create the build, bit it crashed on platform (OQ2).

[Next page](https://qa.fmod.com/t/cant-build-for-oculus-quest-2-with-unreal-4-27-and-fmod/18723.md?page=2)
