2016-05-20 16 views
2

GoogleアナリティクスをUnityゲームに統合しようとしています。 latest unitypackageをダウンロードしてインストールしました。ユニティでgoogle-play-services_libを見つけることができません

Google Analytics > Setup > Install google-play-services_libをクリックした後、私はこのエラーを取得する:

enter image description here

私はGoogleがAndroidのSDKマネージャでサービスを再生するが、それはlibがインストールされませんインストールしました。

GooglePlayServices installation screenshot

だから問題は /extras/google/google_play_services/フォルダにまったく libprojectサブフォルダが存在しないということです。でも、パッケージの説明は、それが唯一のJavaDocとサンプルコード、ないライブラリをインストールしますと言います。 JavaDocとSamplesフォルダのみ。

私はthe documentationを読んでいます(AndroidスタジオもEclipseも使用していないためOTHERタブ)、手順をステップバイステップで実行しても動作しません。私のグーグルは無駄になった。 Google Playサービスのlibをインストールするにはどうすればよいですか?

+1

Googleプレイサービスの最新バージョンが変更されました。これをチェックしてください[リビジョン30へのアップデート後に "/extras/google/google_play_services/libproject"フォルダがありません](http://stackoverflow.com/questions/37310684/missing-sdk-extras-google-google-play-services-libproject -folder-after-updat) – cinthiaro

+0

ありがとう、それはまさに私が探していたものです。私は重複として質問を投票した、私はSOの規制のためにそれを削除しないでください –

答えて

0

設定Google Play Services Googleによるドキュメントをチェックしてみましたか?アンドロイドStudioの

: 'com.android.application' ...

依存関係{ コンパイル「com.google.android.gms:プレイサービス:

  1. Open the build.gradle file inside your application module directory.
  2. Add a new build rule under dependencies for the latest version of play-services . For example:

は、プラグインを適用しますfp9.0.0' ADTとEclipse用 }

  1. Save the changes and click Sync Project with Gradle Files in the toolbar.

Note: If the number of method references in your app exceeds the 65K limit, your app may fail to compile. You may be able to mitigate this problem when compiling your app by specifying only the specific Google Play services APIs your app uses, instead of all of them. For information on how to do this, see Selectively compiling APIs into your executable.

  1. Copy the library project at <android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/ to the location where you maintain your Android app projects.
  2. Import the library project into your Eclipse workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.
  3. In your app project, reference Google Play services library project. See Referencing a Library Project for Eclipse for more information on how to do this.
  4. After you've added the Google Play services library as a dependency for your app project, open your app's manifest file and add the following tag as a child of the <application> element:

+2

返信いただきありがとうございます。はい、これを読んだことがあります。おそらく私はもっと明確に求めているはずです.-/extras/google/google_play_services/libproject/'フォルダはまったくありません。 JavaDocとSamplesフォルダがありますが、libprojectはありません。私は質問を更新します。ありがとう –

関連する問題