Agasper / unity-android-notifications

Unity3D Plugin for Android local notifications with example project
Other
557 stars 184 forks source link

Conflicting with same plugins #74

Open playablegraphs opened 7 years ago

playablegraphs commented 7 years ago

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?

Agasper commented 7 years ago

You should use resolver to fix that https://github.com/googlesamples/unity-jar-resolver

Desno365 commented 6 years ago

@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.

Desno365 commented 6 years ago

Finally managed to fix that, followed these steps https://github.com/googlesamples/unity-jar-resolver#usage and added these dependencies `

https://maven.google.com https://maven.google.com

`

emreckir commented 6 years ago

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!

sunxinzhe2012 commented 6 years ago

@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:

https://maven.google.com https://maven.google.com

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

sunxinzhe2012 commented 6 years ago

content is

AppDependencies.txt

emreckir commented 6 years ago

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 ?

sunxinzhe2012 commented 6 years ago

Assets/Editor

emreckir commented 6 years ago

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 /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:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from /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: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_action for configuration v17. /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_tombstone.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from /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_tombstone.xml:37: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from /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_tombstone.xml: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_action_tombstone for configuration v17. /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media.xml: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_template_big_media for configuration v17. /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:89: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:56: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:45: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_custom.xml: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_template_big_media_custom for configuration v17. /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_template_big_media_narrow for configuration v17. /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:107: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:93: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:93: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:59: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:49: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:49: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-27.0.2/res/layout/notification_template_big_media_narrow_custom.xml: note: using v17 attributes; synthesizing resource net.btpro.bilgiyarismasi:layout/notification_template_big_media_narrow_custom for configuration v17. /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_template_custom_big.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from /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_template_custom_big.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res/layout-v16/notification_template_custom_big.xml:103: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res/layout-v16/notification_template_custom_big.xml:95: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res/layout-v16/notification_template_custom_big.xml:32: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from /Users/Kemal/Desktop/BtPro Projeler/Bilgi Yar??s??mas?? copy/Temp/StagingArea/android-libraries/com.android.support.support-compat-27.0.2/res/layout-v16/notification_template_custom_big.xml:51: note: removing attribute h

xxluky commented 5 years ago

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...

oguzhalil commented 5 years ago

@xxluky get the most recent version of resolver and try again. That should be fix it.