Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Cannot build for Android on Unreal Engine 4.25 (Wwise Integration 2019.2.4.7329.1721)

+1 vote

Hi

I'm hoping someone can shed some light on this situation. I can build my test project for Windows or Mac, but not Android.

When building for Android, I get the following error:

LogPlayLevel: Error:   ERROR: Unable to instantiate module 'AkAudio': System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UnrealProjects\Games\Runner\Plugins\Wwise\ThirdParty\Android\armeabi-v7a\Profile\bin'.
LogPlayLevel:             at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
LogPlayLevel:             at System.IO.FileSystemEnumerableIterator`1.CommonInit()
LogPlayLevel:             at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
LogPlayLevel:             at System.IO.Directory.GetFiles(String path, String searchPattern)
LogPlayLevel:             at AkUEPlatform.GetAllLibrariesInFolder(String LibFolder, String Extension, Boolean RemoveLibPrefix, Boolean GetFullPath) in d:\UnrealProjects\Games\Runner\Plugins\Wwise\Source\AkAudio\AkAudio.Build.cs:line 40
LogPlayLevel:             at AkUEPlatform_Android.GetRuntimeDependencies() in d:\UnrealProjects\Games\Runner\Plugins\Wwise\Source\AkAudio\AkAudio_Android.Build.cs:line 70
LogPlayLevel:             at AkAudio..ctor(ReadOnlyTargetRules Target) in d:\UnrealProjects\Games\Runner\Plugins\Wwise\Source\AkAudio\AkAudio.Build.cs:line 277
LogPlayLevel:          (referenced via default plugins -> Wwise.uplugin)

I have tried all the usual UE4 tricks - regenerate project, deleted cache folders, etc. I've also reinstalled the Wwise integration - no change.

I do not have a folder called D:\UnrealProjects\Games\Runner\Plugins\Wwise\ThirdParty\Android\armeabi-v7a\Profile\bin on my system. I DO, however, have a folder called D:\UnrealProjects\Games\Runner\Plugins\Wwise\ThirdParty\Android_armeabi-v7a\Profile\bin. This was created by the Wwise integration, but it appears to be looking for it in Android\armeabi-v7a instead of Android_armeabi-v7a. Unless that's a completely different folder, but the folder it's looking for doesn't exist.

Any ideas how to fix this?

asked Jul 30 in General Discussion by Lionel P. (110 points)

1 Answer

0 votes

I just came across this today in my project and there are two options:

  1. Move the Android_armeabi-v7a contents into a folder that it's looking for (Android\armeabi-v7a)
  2. Open up AkAudio_Android.Build.cs and change line 14 from #if UE_4_25_OR_LATER to #if !UE_4_25_OR_LATER (there is a missing exclamation point at the beginning)

I went with the second option but I don't know if it requires a recompilation of the plugin (I did it anyway). If you don't have Visual Studio installed then you would need to go with the first option.

Update: Ran into some other issues then found this https://www.audiokinetic.com/library/edge/?source=UE4&id=pg_important_migration_notes_2019_2_2.html so you are supposed to move the folders into what it expects.

answered Sep 13 by James L. (270 points)
edited Sep 15 by James L.
...