2017-11-16 29 views
0

私はUnityでエラーを解決しようとしていて、まったく動作しません。FacebookとGoogle Playのサービスが1つになっていますエラー

私はAdmobとGoogle Playのサービスをインストールしています。それだけで大丈夫です。 Facebook SDKを追加するとすぐに、これは私が得るエラーです。私は紛争の一つを削除しようとしましたが、削除されたときには彼らのどれも働かないのです。誰かが修正を知っていますか?

Found conflicting Android library gpgs-plugin-support 

Assets/Plugins/Android/gpgs-plugin-support-0.9.42 (managed by the Android Resolver) conflicts with: 
Assets/GooglePlayGames/Editor/m2repository/com/google/games/gpgs-plugin-support/0.9.42/gpgs-plugin-support-0.9.42.aar 

Your application is unlikely to build in the current state. 

To resolve this problem you can try one of the following: 
* Updating the dependencies managed by the Android Resolver 
    to remove references to old libraries. Be careful to not 
    include conflicting versions of Google Play services. 
* Contacting the plugin vendor(s) with conflicting 
    dependencies and asking them to update their plugin. 

UnityEngine.Debug:LogWarning(Object) 
Google.Logger:Log(String, LogLevel) 
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel) 
GooglePlayServices.ResolverVer1_1:FindAndResolveConflicts() 
GooglePlayServices.<DoResolution>c__AnonStorey17:<>m__29() 
GooglePlayServices.<DoResolutionUnsafe>c__AnonStorey18:<>m__26(List`1) 
GooglePlayServices.<GradleResolution>c__AnonStorey14:<>m__1F(Result) 
GooglePlayServices.<GradleResolution>c__AnonStorey15:<>m__28() 
GooglePlayServices.PlayServicesResolver:PumpUpdateQueue() 
UnityEditor.EditorApplication:Internal_CallUpdateFunctions() 
+0

gpg、admob、facebookを削除し、最新のgpg、admob、fbプラグインをダウンロードしてインポートしてみてください。 – ZayedUpal

+0

はすでに悲しいことにそれを試みました。まだ何も:( – aaron

答えて

0

Googleが提供するGoogle PlayサービスJarリゾルバーのツールがあります。これらの競合を解決するには、このツールを使用する必要があります。最新のFacebook SDK (7.10.1)には、unitypackageファイルからインポートしたときにすでにリゾルバが含まれています。

パッケージをインポートした後、ユニティエディタのメニューバーの[アセット]> [プレイサービスリゾルバ]> [Androidリゾルバ]のクライアントjarを解決できます。

jarリゾルバのgithub pageから詳細情報を取得することもできます。

+0

何も働いていない多くのエラーを与える多くのエラー – aaron

+0

https://stackoverflow.com/questions/47361824/unity-failed-to-re-package-resources-commandinvokationfailure – aaron

0

回避策はAssets/GooglePlayGames/Editor/m2repository/com/google/games/gpgs-plugin-support/0.9.42/gpgs-plugin-support-0.9.42.aar に資産/ GooglePlayGames /編集/ m2repository/COM /グーグル/ゲーム/ gpgs - プラグインのサポート/ 0.9.42/gpgs - プラグインのサポート-0.9.42の名前を変更することです。 srcaar

および編集資産/ GooglePlayGames /編集/ m2repository/COM//ゲーム/ gpgs - プラグインのサポート/ 0.9.42/gpgs - プラグインのサポート - 0.9.42.pomをGoogleと

を追加<version>の直下に<packaging>srcaar</packaging> の行があります。

Assets/Plugins/Android/gpgs-plugin-support-0.9.42を削除し、Jarリゾルバを再実行します。

関連する問題