Open playablegraphs opened 7 years ago
You should use resolver to fix that https://github.com/googlesamples/unity-jar-resolver
@playablegraphs were you able to fix the issue? I'm stuck with the same issue and I don't know how the Unity Jar Resolver should be used.
Finally managed to fix that, followed these steps https://github.com/googlesamples/unity-jar-resolver#usage and added these dependencies
`
`
i couldnt manage to fix that. So i want to use with google admob plugin but i couldnt. Can you explain step by step what should i do. @Desno365 I do not know where to add your dependencies. Will I add your dependencies to GoogleMobileAds / Editor / GoogleMobileAdsDependencies.xml?
Please help!
@emrator ok,i fix 1,first download play-services-resolver-1.2.59.0.unitypackage from https://github.com/googlesamples/unity-jar-resolver 2,import to unity project 3,in project/Editor,create a xml file AppDependencies.xml,the content is:
4,ok ,the unity-jar-resolver will auto update firebase aar to 27.0.2,and tell you delete old version,delete it 5,complte
content is
Thank you very much, but i dont understand to where i will create AppDependencies.xml? I want to use unity-android-notifications with GoogleMobileAds(AdMob) so will i create AppDependencies.xml in Assets/GoogleMobileAds/Editor ? or Assets/Editor create AppDependencies.xml ?
Assets/Editor
I made you say, but i have this error when build for android. How can fix it? Thanks... Dont forget, i want to use this notification plugin with admob!
CommandInvokationFailure: Failed to re-package resources. /Users/Kemal/Library/Android/sdk/build-tools/26.0.2/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/Kemal/Library/Android/sdk/platforms/android-26/android.jar" -F bin/resources.ap_ --extra-packages com.google.unity.ads:android.arch.lifecycle:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:com.google.android.gms.ads.impl:com.google.android.gms.admob.impl.license:com.google.android.gms.admob:com.google.android.gms.admob.license:com.google.android.gms:com.google.android.gms.common.license:com.google.android.gms.gass:com.google.android.gms.gass.license:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:net.btpro.bilgiyarismasi.resources -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/android.arch.lifecycle.runtime-1.0.3/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-core-ui-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-core-utils-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-fragment-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.android.support.support-v4-27.0.2/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-ads-11.8.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-ads-lite-11.8.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-basement-11.8.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-gass-11.8.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-compat-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-core-ui-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-core-utils-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-fragment-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-media-compat-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/support-v4-26.1.0/res" -S "/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yarışması copy/Temp/StagingArea/android-libraries/unity-android-resources/res"
stderr[
/Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res/layout/notification_action.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from
I have the same problem on Android. The above solutions don't work. I have had already Android Resolver installed in my project before importing notifications. I am using the resolver for play games plugin. The actual problem is that I have these libraries already in my project:
If I go Assets -> Play Services Resolver -> Android -> Force resolve - the above scripts get update ...25.2.0 but not the new ones ... 26.1.0 The Resolver can not resolve this situation.
What is the correct way to import this plugin anyway? I could'n find it anywhere. I just copy-paste the files from the Unity exaple project.
If I have two libraries with a different version number (25.2.0 and 26.1.0) I get a DEX error when building the apk package.
Please help me...
@xxluky get the most recent version of resolver and try again. That should be fix it.
First of all Thx for this great plugin!
but it is conflicting with plugins.
Firebase CM exports plugin version. support-annotations-25.2.0 support-compat-25.2.0 support-core-ui-25.2.0 support-core-utils-25.2.0 support-fragment-25.2.0 support-media-compat-25.2.0 support-v4-25.2.0
Android Notification required plugin version. support-annotations-26.x.x support-compat-26.x.x support-core-ui-26.x.x support-core-utils-26.x.x support-fragment-26.x.x support-media-compat-26.x.x support-v4-26.x.x
And when i try out this plugin on android it is asking for user-permission storage-phone records etc. is that necessary?