Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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って。汗

matsuyoro
げーむくりえいたー。 顔は濃いが存在の薄さに悩んでいる。 書籍「仕事はたのしいかね」の、大きな事でも試してみればの精神に感銘を受けている。 好きな言葉:好きこそものの上手なれ / 楽は苦の種、苦は楽の種
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした