playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity
Other
3.47k stars 966 forks source link

Some conflicting dependencies were found. error #3137

Open random0v0 opened 2 years ago

random0v0 commented 2 years ago

제목 없음

I'm use Unity 2020.3.30f1 version, and i try import GPGS 0.11.01 version but i have some error. what should i do?

tomurtogu commented 2 years ago

Is there any progress on this issue?

random0v0 commented 2 years ago

Is there any progress on this issue? I fixed it! In 2020.3.30f1 version, GPGS v0.10.12 version will Work.

tomurtogu commented 2 years ago

The problem persist with these setups:

Unity 2020.3.20f1 Play Games Plugin v11.01 Google Mobile Ads 7.0.0

Unity 2020.3.33f1 Play Games Plugin v11.01 Google Mobile Ads 7.0.0

If I use Play Games v0.10.1, it conflicts with Google Mobile Ads again.

BlackCatKPI commented 2 years ago

Spent a lot of time resolving this issue. And succeded.

Here the resolution:

Use proguard file Minify in debug and release Force resolve.

And it worked.

tomurtogu commented 2 years ago

Spent a lot of time resolving this issue. And succeded.

Here the resolution:

Use proguard file Minify in debug and release Force resolve.

And it worked.

I've already done these steps. In my case, I found that the problem was in the fb mediation adapter. I added plugins to an empty project one by one, and after every import, I run "force resolve dependencies". There was no such warning until I imported the facebook mediation adapter, so I think the problem is related to the facebook mediaton adapter.

BlackCatKPI commented 2 years ago

Also the pass to inner repository (GooglePlayGamesPluginDependencies.xml) has to be checked: in my case I changed repository in GooglePlayGamesPluginDependencies.xml to

Assets/GooglePlayGames/com.google.play.games/Editor/m2repository
tomurtogu commented 2 years ago

I didn't make any changes to the repo. It was already like you said. Maybe the version you use is older.

<?xml version="1.0" encoding="UTF-8"?>
<dependencies>
  <!-- Internal library dependency generated at build time. 
    It also defines the transitive dependencies on play-services
-->
  <androidPackages>
    <androidPackage spec="com.google.games:gpgs-plugin-support:0.11.01">
      <repositories>
        <repository>Assets/GooglePlayGames/com.google.play.games/Editor/m2repository</repository>
      </repositories>
    </androidPackage>
  </androidPackages>
</dependencies>
m0s-ivan commented 2 years ago

Same warnings using Unity 2021.3.0f1 & Play Games Plugin v11.01

Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist.

Some conflicting dependencies were found. The following dependency versions were modified: com.google.games:gpgs-plugin-support:0.11.01 --> com.google.games:gpgs-plugin-support:+

random0v0 commented 2 years ago

Same warnings using Unity 2021.3.0f1 & Play Games Plugin v11.01

Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist.

Some conflicting dependencies were found. The following dependency versions were modified: com.google.games:gpgs-plugin-support:0.11.01 --> com.google.games:gpgs-plugin-support:+

try v10.14

m0s-ivan commented 2 years ago

Same warnings using Unity 2021.3.0f1 & Play Games Plugin v11.01 Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist. Some conflicting dependencies were found. The following dependency versions were modified: com.google.games:gpgs-plugin-support:0.11.01 --> com.google.games:gpgs-plugin-support:+

try v10.14

It was working without problems on v10.14 I'm not planning to downgrade since I've already migrated to Play Games Services Sign In v2