- Home /
UnityでfacebookSDKの導入について
Context: Unity2018.2.0f2 Android Studio 3.1.3 jdk1.8.0_181 facebook-unity-sdk-7.13.0
I'm trying to introduce facebook's SDK in Unity, but when I do Android Build I get an error and I can not create apk.
CommandInvokationFailure: Failed to re-package resources. C:\work\AndroidSDK\android-sdks\build-tools\26.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/work/AndroidSDK/android-sdks\platforms\android-26\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:android.support.graphics.drawable:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms:com.google.android.gms.gass:com.unity.purchasing:eu.janmuller.android.simplecropimage:com.facebook.android:com.facebook.applinks:com.facebook.common:com.facebook.core:com.facebook.login:com.facebook.messenger:com.facebook.places:com.facebook.share:com.android.vending.billing:com.google.unity.ads:com.unity.purchasing.googleplay -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.animated-vector-drawable-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.cardview-v7-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.customtabs-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-compat-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-fragment-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-v4-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.support-vector-drawable-25.3.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-ads-11.2.2\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-ads-lite-11.2.2\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-11.2.2\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-gass-11.2.2\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\common\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\CropLib\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.12.1\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\facebook-common\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\facebook-login\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\facebook-messenger\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\facebook-share\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\GooglePlay\res"
stderr[ fakeLogOpen(/dev/log_crash, O_WRONLY) failed fakeLogOpen(/dev/log_security, O_WRONLY) failed fakeLogOpen(/dev/log_crash, O_WRONLY) failed fakeLogOpen(/dev/log_security, O_WRONLY) failed C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:scrollIndicators from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v22 attributes; synthesizing resource jp.co.naxcorp.dscore:layout/abc_alert_dialog_button_bar_material for configuration v22. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml:27: note: removing attribute http://schemas.android.com/apk/res/android:touchscreenBlocksFocus from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\layout\abc_screen_toolbar.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:layout/abc_screen_toolbar for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_ab_back_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_ab_back_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_ab_back_material.xml:24: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_ab_back_material.xml:24: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_ab_back_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_ab_back_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:31: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml:30: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_arrow_drop_right_black_24dp.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_arrow_drop_right_black_24dp for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_clear_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_clear_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_clear_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_clear_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_clear_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_clear_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_go_search_api_material.xml:16: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_go_search_api_material.xml:16: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_go_search_api_material.xml:22: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_go_search_api_material.xml:22: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_go_search_api_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_go_search_api_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_menu_overflow_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_menu_overflow_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_menu_overflow_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_menu_overflow_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_menu_overflow_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_menu_overflow_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_search_api_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_search_api_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_search_api_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_search_api_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_search_api_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_search_api_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_voice_search_api_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportWidth from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_voice_search_api_material.xml:17: note: removing attribute http://schemas.android.com/apk/res/android:viewportHeight from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_voice_search_api_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:pathData from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_voice_search_api_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:fillColor from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ic_voice_search_api_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ic_voice_search_api_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ratingbar_indicator_material.xml:25: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ratingbar_indicator_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ratingbar_indicator_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ratingbar_material.xml:25: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ratingbar_material.xml: note: using v21 attributes; synthesizing resource jp.co.naxcorp.dscore:drawable/abc_ratingbar_material for configuration v21. C:\work\Unity\workspace\my_project\my_project\Temp\StagingArea\android-libraries\com.android.support.appcompat-v7-25.3.1\res\drawable\abc_ratingbar_small_material.xml:23: note: removing attribute http://schemas.android.com/apk/res/android:tileModeX from C:\work\Unity\
Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:187 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:94 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Although there seems to be someone who seems to have the same error when examining it, there was also described the method of when solved, but it was not solved in my environment.
If you solve it in the same environment, it will be appreciated if you can tell me how to solve it.
Thank you.