Unity not building for Android with Ads service enabled

Im just gonna post it here, because i posted it in a wrong section,

so i recently couldnt get Unity to build my games, thats fixed.

But whenever i enable the ADS service, im getting an error at Gradle Build Failed.

This is the full error log:

As you can see, theres an error saying:

How can one fix this?

Its pretty frustrating haha

Thanks for any help!

It says you’re missing NDK :slight_smile: Install it

Well, i pointed NDK to the right place in Preferences…
But i still get this:

EDIT: I added the NDK to the Path
and now theres no STDOUT
The ‘What went wrong’ part is still the same?

So i thought, being smart, i make a new folder inside Android SDK\ and name it ndk-bundle, because its standard searching in it, but no… It still keeps giving the same error, then what i did is create a ANDROID_NDK_HOME variable and add the same folder to it, still the same error…

Just found out, that when i build with Enable built-in Ads extension enabled, it generates the error above,

but when i disable it, i can build… Ads dont show up though…

(PS: Yes, i also have the asset store’s Unity Ads package…)

EDIT:

Issue has been fixed
Might you have this issue:

Disable Built-in-Ads extension at the service tab, whenever you use the Unity Ads package from the Asset Store.

1 Like