Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
6
Help us understand the problem. What is going on with this article?

More than 3 years have passed since last update.

@matsuyoro

Unity2017 Androidでfirebase周りのSDKをいれた際にハマったいくつかのエラー

android ビルド周りエラー備忘録

各SDKのminバージョン周り。


Error: Error while saving blame file, build will continue
Error: 要素タイプ"uses-sdk"に関連付けられている属性"tools:overrideLibrary"の接頭辞"tools"がバインドされていません。

UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

そもそもuses-sdkを消すか、

参考 http://y-anz-m.blogspot.jp/2015/09/minsdkversion.html

この素晴らしすぎる対応でoverrideするか。

僕の場合は、uses-sdkを消しても駄目だったので、
Assets/Plugins/Android/AndroidManifest.xml
大元のこれを一旦削除しました。

複数のAndroidManifestの統合は、下記リファレンスにて

参考 https://developer.android.com/studio/build/manifest-merge.html?hl=ja

google play service 周りの重複エラー(毎度ひっかかる


CommandInvokationFailure: Unable to convert classes into dex format.
/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/yo_matsuda/Library/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -


stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehm;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehf;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehg;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehh;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehi;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehj;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzehk;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzbcc;


僕の場合は、
firebase-analytics-11.2.0と、
firebase-analytics-impl-11.2.0
が重複していたのが原因でした。

なんだimplって。汗

6
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
6
Help us understand the problem. What is going on with this article?