Open djbozkosz opened 6 years ago
Ok, for now we resolved issue by adding Lifecycle libs:
from android.arch.core:
common-1.0.0.jar runtime-1.0.0.aar
from android.arch.lifecycle:
common-1.0.3.jar compiler-1.0.0.jar extensions-1.0.0.aar reactivestreams-1.0.0.aar runtime-1.0.3.aar
Note: for non Gradle builds in Unity you need to move all stuff with ${applicationId} from aar's manifests into your manifest with correct package name. And (probably too) remove target sdk version from FB manifests.
I also have this issue, trying to make push notifications work.
an official fix / word on this would be ideal
Same here, would be nice to get this fixed
Same here, would be nice to get this fixed
I have the same problem.
I think that #109 has your answer. The support libs added a dependency, which in regular Android projects can be downloaded using a remote repository. I don't think this step is added by default when building in Unity.
I think the resolution should automatically download these dependencies, but there was a bug in the unity-jar-resolver which leads to overwritten libraries: https://github.com/googlesamples/unity-jar-resolver/issues/97
This is exactly the case with android.arch.core.*
and android.arch.lifecycle.*
.
This is already fixed in recent releases BUT it seems to me that you need to delete the Temp
folder, all already resolved dependencies from Plugins/Android
and ProjectSettings/AndroidResolverDependencies.xml
Thanks for the update @jnbt, so you are saying the the Jar Resolver plugin should be able to recognise the dependency, which comes from within an existing .aar file, and down load that in addition to the .aar dependencies?
To confirm, we should clear down all resolved dependencies and settings, update Jar Resolver and resolve?
@JimmyDeemo I've tried again and it worked.
Maybe someone else can try the following steps:
*.jar
and *.aar
file in Assets/Plugins/Android
.Temp
-folder completelyProjectSettings/AndroidResolverDependencies.xml
Assets -> Android Resolver -> Resolve
Dear developers,
I'm trying latest version (7.10.1) of SDK in Unity 5.6.2p3. Everything works fine with Android Support v25.x.x libs. But we need to target Android API 26 and use support libs of this version (due notification API changes). Unfortunately SDK doesn't work with this version and throws exceptions while plugin inits:
Attaching list of used libs:
I checked Android Manifest after merge, all FB activities are included and checked DEX file and FB classes are included too.
I also tried to replace (just for test) FB Android SDK (v4.23.0) with v4.29.0 and I'm able to init plugin but login is not possible - or another dialog based action -> ends with similar set of exceptions.
Best regards Tomáš Růžička.