Closed mike993 closed 4 years ago
Exact same issue with me. Onesignal + Google Admob. It's incredibly stressful as I've been trying to get push notification in my app for months. I was delighted to see that this issue was meant to be fixed, but I'm still running in circles trying to setup OneSignal on an android Unity project.
Same here. I also tested all the solutions that was mentioned in other threads.
At least i'm not the only one with this problem...
Assets/Plugins/Android/settingsTemplate.gradle
Assets/Plugins/Android/mainTemplate.gradle
Thanks for reporting the issue. We have updated our AndroidX Compatibility instructions to account for incompatibility when using Unity 2019.3, AdMob 4.12, and OneSignal.
The important changes are if Using Unity 2019.3 are:
Assets/Plugins/Android/settingsTemplate.gradle
to achieve the same results if you don't need it.apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
from this file.Assets/Plugins/Android/settingsTemplate.gradle
with the new contents from step 5A
- settingsTemplate
Link content seems drastically changed and invalid now.
@roointan I updated my https://github.com/OneSignal/OneSignal-Unity-SDK/issues/274#issuecomment-590146598 with how to remove the old settings and update to the more compatible setup.
Hi, i have the same problem after update (android build).
How did you solve this problem?
I have all the latest Packages and unity version: **- Unity 2019.3.1 -PlayServicesResolver 1.2.135
I already follow the instruction on -> https://documentation.onesignal.com/docs/troubleshooting-unity#section-androidx-compatibility
i tried to delete admob or onesignal and all worked well but togheter didn't work.
I tried all fix found on old issue on this git repo... but nothing worked.
Look my attachment for grandle files.
Someone can help me? Thanks
mainTemplate.gradle.txt settingsTemplate.gradle.txt
Originally posted by @mike993 in https://github.com/OneSignal/OneSignal-Unity-SDK/issues/223#issuecomment-587074236