• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by aliens9889 · Dec 18, 2016 at 11:23 AM · errorunity5pluginerror buildconsole errors

Firebase Analytics Unity Problem to build an Android apk

Hi everybody I'm using this Firebase plugin to use the Analytics Part

https://github.com/unity-plugins/Firebase-Admob-Unity

So I installed the plugin and I added my google-services.json on the project everything was fine, until I got this error and I don't know what I have to do. I already update the build tool to 25 version so I have not idea what i'm doing wrong or what I missed

 CommandInvokationFailure: Failed to re-package resources.
 /Users/parra/Development/android-sdk-macosx/build-tools/25.0.2/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/parra/Development/android-sdk-macosx/platforms/android-25/android.jar" -F bin/resources.ap_ --extra-packages com.google.firebase:android.support.v7.appcompat:com.google.android.gms.measurement:com.google.android.gms.measurement.impl:com.google.firebase:com.google.firebase:com.google.firebase:com.google.firebase.iid:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.tasks:android.support.v4:android.support.v4 -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/Firebase/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-analytics-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-analytics-impl-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-analytics-unity-1.1.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-app-unity-1.1.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-common-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/firebase-iid-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-ads-9.4.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-ads-lite-9.4.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-basement-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-basement-9.4.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-tasks-10.0.1/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/support-v4-23.0.0/res" -S "/Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/support-v4-24.0.0/res"
 
 stderr[
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml:111: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.internal.widget.DialogTitle>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_alert_dialog_material.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/abc_alert_dialog_material for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_dialog_title_material.xml:29: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <TextView>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_dialog_title_material.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/abc_dialog_title_material for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from <android.support.v7.internal.widget.ActionBarContainer>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource com.likinvent.okidoki:layout/abc_screen_toolbar for configuration v21.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_search_view.xml:47: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/abc_search_view.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/abc_search_view for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:42: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml:34: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_big_media for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:60: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <ImageView>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layout_toEndOf from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:46: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:38: note: removing attribute http://schemas.android.com/apk/res/android:layout_toStartOf from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:layout_alignParentEnd from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_big_media_narrow.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_big_media_narrow for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingEnd from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:77: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:96: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <TextView>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:64: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <TextView>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginStart from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_lines.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_lines for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml:43: note: removing attribute http://schemas.android.com/apk/res/android:layout_marginEnd from <include>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml:33: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <LinearLayout>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_media.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_media for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_chronometer.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <Chronometer>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_chronometer.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_part_chronometer for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_time.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:paddingStart from <DateTimeView>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/layout/notification_template_part_time.xml: note: using v17 attributes; synthesizing resource com.likinvent.okidoki:layout/notification_template_part_time for configuration v17.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/drawable/abc_textfield_search_material.xml:19: note: removing attribute http://schemas.android.com/apk/res/android:state_activated from <item>
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/appcompat-v7-23.0.0/res/drawable/abc_textfield_search_material.xml: note: using v11 attributes; synthesizing resource com.likinvent.okidoki:drawable/abc_textfield_search_material for configuration v11.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-10.0.1/res/values/values.xml:33: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-basement-9.4.0/res/values/values.xml:3: Original attribute defined here.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-10.0.1/res/values/values.xml:46: error: Attribute "buttonSize" already defined with incompatible format.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res/values/values.xml:21: Original attribute defined here.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-10.0.1/res/values/values.xml:54: error: Attribute "colorScheme" already defined with incompatible format.
 /Users/parra/Documents/OkiTestFirebase/Temp/StagingArea/android-libraries/play-services-base-9.4.0/res/values/values.xml:21: Original attribute defined here.
 ]
 stdout[
 Configurations:
  (default)
 
 Files:
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
 Including resources from package: /Users/parra/Development/android-sdk-macosx/platforms/android-25/android.jar
 applyFileOverlay for drawable
 trying overlaySet Key=common_full_open_on_phone.png
 trying overlaySet Key=common_google_signin_btn_icon_dark.xml
 trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light.xml
 trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark.xml
 trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_text_light.xml
 trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png
 trying overlaySet Key=common_ic_googleplayservices.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark.xml
 trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light.xml
 trying overlaySet Key=common_plus_signin_btn_icon_light_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark.xml
 trying overlaySet Key=common_plus_signin_btn_text_dark_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light.xml
 trying overlaySet Key=common_plus_signin_btn_text_light_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_pressed.9.png
 trying overlaySet Key=common_full_open_on_phone.png
 baseFile 0 has flavor mdpi-v4
 baseFile 1 has flavor tvdpi-v4
 baseFile 2 has flavor hdpi-v4
 baseFile 3 has flavor xhdpi-v4
 baseFile 4 has flavor xxhdpi-v4
 overlayFile 0 has flavor hdpi-v4
 overlayFile 1 has flavor xhdpi-v4
 found a match (2) for overlay file common_full_open_on_phone.png, for flavor hdpi-v4
 found a match (3) for overlay file common_full_open_on_phone.png, for flavor xhdpi-v4
 trying overlaySet Key=common_google_signin_btn_icon_dark.xml
 baseFile 0 has flavor 
 overlayFile 0 has flavor 
 found a match (0) <message truncated>

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error building Player because scripts had compiler errors,Error building Player because scripts had compiler errors even though there are no errors visible 0 Answers

how can i save my AndroidManifest correctly? ** (HELP!) 0 Answers

Build Project to Android Error: Unable to start ADB server. 11 Answers

Failded to connect to the Editor (Unity Live Link)? 0 Answers

Book of the dead and unity 2020.3,Book of the dead with unity 2020.3 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges