I integrated Adcolony ads in my game maker Android Game,and when im trying to build .apk ,i got the following *.aar files at extension error and build failed.
System.IO.IOException: The file ‘D:/game_531CA3FB_689AB3CD\Android\default\game.***.***\elibs/adcolony-3.3.5.\adcolony-3.3.5.aar’ already exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at System.IO.File.Copy(String sourceFileName, String destFileName)
at Igor.AndroidUtils.(YYDictionary`2 , String )
at Igor.AndroidUtils.(YYDictionary`2 , String , Boolean , String )
at Igor.AndroidBuilder.Package()
Igor complete.
How to solve this *.aar files at extension problem in Game Maker?
Even me too faced this error .aar files at extension when building apk export,but its solved when i added the following….
Goto game maker extensions –> “Inject to Grandle dependencies”
just add : compile(name: ‘adcolony-sdk-3.3.5’, ext: ‘aar’)
repositories
{
flatDir {
dirs ‘libs-aar’
}
}
and now create a folder “libs-aar” with the *.aar files in C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.2.1.287\android\runner\ProjectFiles\ or your game maker install location on your computer.
And step 2 add : abiFilters in build.grandle (find in ProjectFiles) in section “buildTypes”:
buildTypes {
release {
ndk {
abiFilters ‘armeabi-v7a’, ‘arm64-v8a’
}