# Integrating FMOD Studio into AGDE

**URL:** https://qa.fmod.com/t/integrating-fmod-studio-into-agde/21293
**Category:** FMOD Engine
**Tags:** android
**Created:** [February 27, 2024, 6:50pm UTC](https://qa.fmod.com/t/integrating-fmod-studio-into-agde/21293 "2024-02-27T18:50:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![emptyclip](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@emptyclip](https://qa.fmod.com/u/emptyclip)
#### Post date: [February 27, 2024, 6:50pm UTC](https://qa.fmod.com/t/integrating-fmod-studio-into-agde/21293/1 "2024-02-27T18:50:08Z")

</div>

Hey guys,  
We’re moving to AGDE ([Visual Studio용 Android 게임 개발 확장 프로그램 &nbsp;|&nbsp; Android game development &nbsp;|&nbsp; Android Developers](https://developer.android.com/games/agde)) for our native Android development.

Whenever I have to manually ‘hack’ in a shared library or jar file future updates seem to crush my projects. I’d like to avoid that situation here.

Could you give me a walkthrough of how I should integrate FMOD using this?

Thank you!

Matt

---

<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: [February 29, 2024, 2:30am UTC](https://qa.fmod.com/t/integrating-fmod-studio-into-agde/21293/2 "2024-02-29T02:30:42Z")

</div>

It’s mostly straightforward to add FMOD to a native AGDE Android application. You add the FMOD includes and libs in the same way as you would with any other vcxproj, the only real difference is that you need to add an implementation dependency on fmod.jar if you want to make any calls into FMOD from an activity, or load assets from the [asset manager](https://fmod.com/docs/2.02/api/platforms-android.html#asset-manager). Here are the steps I took to get FMOD working in one of the AGDE samples:

1. In the property pages, navigate to _Configuration Properties → C/C++ → General_ and add the **api/core/inc** and **api/studio/inc** directories to the _Additional Include Directories_ list.
2. In the property pages, navigate to _Configuration Properties → Linker → Input_ and add the **api/core/lib/$(Platform)/libfmod.so** and **api/studio/lib/$(Platform)/libfmodstudio.so** libs to your _Additional Dependencies_ list.
3. In your application’s app/build.gradle file, add **api/core/lib/fmod.jar** to your list of implementations:

```js
dependencies {
    implementation files('/api/core/lib/fmod.jar')
}

```

4. Also in your application’s app.build.gradle file, add a resource directory to load your banks from:

```js
android {
    ...
    sourceSets {
     main {
         assets.srcDirs = ['res', '/api/examples/media']
     }
 }

```

Hopefully that’s enough information to get you started. Please let me know if you run into any issues getting setup.

---

<div class="post-metadata">

### Author: ![emptyclip](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@emptyclip](https://qa.fmod.com/u/emptyclip)
#### Post date: [February 29, 2024, 6:02pm UTC](https://qa.fmod.com/t/integrating-fmod-studio-into-agde/21293/3 "2024-02-29T18:02:38Z")

</div>

Thank you, Jeff! I really appreciate it!
