Unity build process fails due to Unity Ads

Hi,

I have a project that builds fine on iOS and uses Unity Ads and Unity IAP. However, when I switch to Android and do a build, the build fails near the end of the process with the message “cannot build apk”. I have another project made using the same core code base and it builds fine on Android. The only difference is that the other project doesn’t have Unity Ads or Unity IAP enabled for it. Here is the log. It mentions Unity Ads so I’m guessing it’s related to Unity Ads. Can anyone help me understand the issue?

Which version of Unity are you using? This bug should have been corrected, I think.

I’m using 5.5.1.p3

Just to confirm, I went and disabled Unity Ads from the Services Window and removed the corresponding Unity.Advertising code and it compiles fine. Therefore, I’m not able to do the Android build with UnityAds enabled from the services window.

Thanks, we’ve just noticed that this bug was corrected in 5.5.1p2, but subsequently slipped back in to 5.5.1p3.

Sorry for the regression. It will be corrected for good in 5.5.2.

Thanks so much!