Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

CommandInvokationFailure: Failed to re-package resources (android apk, need help!)

Discussion in 'Android' started by Rilissimo, Nov 6, 2015.

  1. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    hi guys! please help me i am bloqued
    when i try to build android apk i get this error

    Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
    /Users/Riccardo/Documents/Android SDK/build-tools/23.0.1/aapt package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/Riccardo/Documents/Android SDK/platforms/android-21/android.jar" -F bin/resources.ap_ --extra-packages com.google.unity:com.google.android.gms:com.LeafSAS.Puff -S "/Users/Riccardo/Documents/Progetto Puff Unity/Temp/StagingArea/android-libraries/google-play-services_lib/res" -S "/Users/Riccardo/Documents/Progetto Puff Unity/Temp/StagingArea/android-libraries/unity-android-resources/res"

    stderr[
    res/drawable/common_signin_btn_icon_dark 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/drawable/common_signin_btn_icon_light 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/drawable/common_signin_btn_text_dark 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/drawable/common_signin_btn_text_light 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/ic_plusone_medium_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/ic_plusone_medium_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/ic_plusone_medium_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/ic_plusone_medium_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/ic_plusone_small_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/ic_plusone_small_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/ic_plusone_small_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/ic_plusone_small_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/ic_plusone_standard_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/ic_plusone_standard_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/ic_plusone_standard_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/ic_plusone_standard_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/ic_plusone_tall_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/ic_plusone_tall_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/ic_plusone_tall_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/ic_plusone_tall_off_client 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/powered_by_google_dark 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/powered_by_google_dark 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/powered_by_google_dark 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/powered_by_google_dark 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/powered_by_google_light 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-hdpi-v4/powered_by_google_light 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xhdpi-v4/powered_by_google_light 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-xxhdpi-v4/powered_by_google_light 1.png: Invalid file name: must contain only [a-z0-9_.]
    res/color/common_signin_btn_text_dark 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/color/common_signin_btn_text_light 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/color/wallet_primary_text_holo_light 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/color/wallet_secondary_text_holo_dark 1.xml: Invalid file name: must contain only [a-z0-9_.]
    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_focus_light.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_light is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_focus_light.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_light is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_focus_light.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_focus_light is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_focus_light.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_disabled_light.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_light is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_disabled_light.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_light is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_disabled_light.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_light.9.png:0: error: Resource entry common_signin_btn_icon_disabled_light is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_disabled_light.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_focus_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_focus_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_focus_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_focus_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_focus_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_focus_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_focus_dark.9.png:0: error: Resource entry common_signin_btn_icon_focus_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_focus_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_focus_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_focus_light.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_focus_light is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_focus_light.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_focus_light is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_focus_light.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_focus_light.9.png:0: error: Resource entry common_signin_btn_icon_focus_light is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_focus_light.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_normal_dark.9.png:0: error: Resource entry common_signin_btn_icon_normal_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_normal_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_normal_dark.9.png:0: error: Resource entry common_signin_btn_icon_normal_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_normal_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_normal_dark.9.png:0: error: Resource entry common_signin_btn_icon_normal_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_normal_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_normal_dark.9.png:0: error: Resource entry common_signin_btn_icon_normal_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_normal_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_normal_light.9.png:0: error: Resource entry common_signin_btn_icon_normal_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_normal_light.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_normal_light.9.png:0: error: Resource entry common_signin_btn_icon_normal_light is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_normal_light.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_normal_light.9.png:0: error: Resource entry common_signin_btn_icon_normal_light is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_normal_light.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_normal_light.9.png:0: error: Resource entry common_signin_btn_icon_normal_light is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_normal_light.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_pressed_dark.9.png:0: error: Resource entry common_signin_btn_icon_pressed_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_pressed_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_pressed_dark.9.png:0: error: Resource entry common_signin_btn_icon_pressed_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_pressed_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_pressed_dark.9.png:0: error: Resource entry common_signin_btn_icon_pressed_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_pressed_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_pressed_dark.9.png:0: error: Resource entry common_signin_btn_icon_pressed_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_pressed_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_icon_pressed_light.9.png:0: error: Resource entry common_signin_btn_icon_pressed_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_icon_pressed_light.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_icon_pressed_light.9.png:0: error: Resource entry common_signin_btn_icon_pressed_light is already defined.
    res/drawable-hdpi-v4/common_signin_btn_icon_pressed_light.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_icon_pressed_light.9.png:0: error: Resource entry common_signin_btn_icon_pressed_light is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_icon_pressed_light.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_icon_pressed_light.9.png:0: error: Resource entry common_signin_btn_icon_pressed_light is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_icon_pressed_light.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_text_disabled_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_text_disabled_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_text_disabled_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_text_disabled_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_text_disabled_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_text_disabled_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_text_disabled_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_text_disabled_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_text_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_focus_dark is already defined.
    res/drawable-mdpi-v4/common_signin_btn_text_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-hdpi-v4/common_signin_btn_text_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_focus_dark is already defined.
    res/drawable-hdpi-v4/common_signin_btn_text_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-xhdpi-v4/common_signin_btn_text_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_focus_dark is already defined.
    res/drawable-xhdpi-v4/common_signin_btn_text_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-xxhdpi-v4/common_signin_btn_text_disabled_focus_dark.9.png:0: error: Resource entry common_signin_btn_text_disabled_focus_dark is already defined.
    res/drawable-xxhdpi-v4/common_signin_btn_text_disabled_focus_dark.10.png:0: Originally defined here.

    res/drawable-mdpi-v4/common_signin_btn_text_disabled_focus_light.9.png:0: error: Resource entry common_signin_btn_text_disabled_focus_light is already defined.
    res/drawable-mdpi-v4/common_signin_btn_text_disabled_focus_light.10.png:0: Originally defined here.

    i'm using Unity 5 free, android sdk tool 24.4.0, i'm trying with some different sdk versions, like 21, 20, but doesn't work! please help :(
     
  2. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    EDIT:
    fixed first error by replacing a folder "google-play-services_lib" in Assets > Plugins > Android with a folder from Android SDK > extras > google > google_play_services > libproject but now i got new error from building

    CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
    /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/Riccardo/Documents/Android SDK/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/Unity.app/Contents/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -

    stderr[
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.c) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.f) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.e) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.h) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.g) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.gifting.d) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.d) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.c) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.e) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.h) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.i) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.f) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.g) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.m) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.a.b) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.highway.b.e) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.insights.b) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.insights.a) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.leaderboards.b) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.leaderboards.a) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.sync.a) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.sync.b) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.sync.f) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.sync.h) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended
    solution is to recompile the class from source, using an up-to-date compiler
    and without specifying any "-target" type options. The consequence of ignoring
    this warning is that reflective operations on this class will incorrectly
    indicate that it is *not* an inner class.
    warning: Ignoring InnerClasses attribute for an anonymous inner class
    (com.soomla.sync.i) that doesn't come with an
    associated EnclosingMethod attribute. This class was probably produced by a
    compiler that did not target the modern .class file format. The recommended

    help :(
     
  3. kobyle

    kobyle

    Joined:
    Feb 23, 2015
    Posts:
    92
  4. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    Unfortunately not, looking on the internet I think is a problem of multiple folders libs , but I can not solve :(
     
  5. kobyle

    kobyle

    Joined:
    Feb 23, 2015
    Posts:
    92
    @Rilissimo I actully solved it last night, are you using google analytics with soomla and other ad frameworks?
    I tried to implement appodeal last night which caused me those errors.

    Upgrading from google analytics v3 to v4 solved it for me.
     
  6. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    What libraries are you adding to your project ?

    From the error, it seems you have a resources that is defined multiple times (hence the message: "xxxx is already defined".

    For example, the resource "common_signin_btn_icon_disabled_dark" is said to be defined more than once.

    Please check that you are not adding the same library more than once in your project (if you don't know where to look, you can send a print out of your Plugins/Android folder's contents, that may assist in pinpointing the issue).
     
  7. Rilissimo

    Rilissimo

    Joined:
    Mar 10, 2015
    Posts:
    13
    Solved thanks all! just check if you have multiple .jar in the assets folder, check if you have multiple file in google_play_services folder, and all works fine :)
     
    liortal likes this.
  8. serginho

    serginho

    Joined:
    Nov 4, 2013
    Posts:
    2
    Guys help me. Im having this problem with GameAnalytics.
    This is my plugins folder:
    upload_2015-11-16_17-54-20.png

    Please help me, I need to build tomorrow T.T!!
     
  9. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    @serginho hard to tell, since the error message is truncated.

    The aapt tool is responsible for resource code generation. This means it takes as input all the resources your game is using (under each of your plugins' res/ folders) and it generates a single set of resources from them (uses code generation to assign unique IDs for every resource, etc).

    From your folder structure (and from the parameters that are passed to the aapt command) i can see you have a few libraries:

    facebook\res"
    google-play-services_lib\res"
    helpshift\res"
    play-services-analytics-7.5.0\res"
    play-services-base-7.5.0\res"
    support-v4-22.2.0\res"
    unibillSamsung\res"
    unity-android-resources\res"

    At least some of these seem related (google player services lib, play services analytics, play services base).
    In case there are multiple libraries that define the same resources, the android tools can fail to build an .APK file.

    Are you familiar with what's the purpose of each of these libraries ? can it be possible that some contain the same (or more) functionality as the others, causing the build to fail ?
     
  10. serginho

    serginho

    Joined:
    Nov 4, 2013
    Posts:
    2
    @liortal , you can expand the error above by clicking at the bottom of the quote, there is the full error. What else can I show you so you can help me? This problem started as soon as I implemented GameAnalytics. The project was compiling perfectly before that.
     
  11. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    @serginho last line says: "C:\Users\Sergio\Documents\TEG\teg\Temp\StagingArea\android-libraries\helpshift\res\menu\hs__actionbar_indeterminate_progress.xml: note: using v11 attributes; synthesizing resourc<message truncated>"
     
  12. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    @bitter i tried to help him, the message from aapt is truncated, and i believe the true error was removed. When executing the same command from a 'cmd' prompt, you do get the full error message about resources that are defined multiple times.
     
  13. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    @liortal Oh, it's Unity that truncates the message. :) But the complete error should be printed to the Editor log, no?
     
  14. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    I have no idea.
    Another issue that i've seen is that a .zip file under Plugins/Android gets imported and marked as "Android" in the plugin inspector. Not sure this is the desired behaviour... I thought you only import android libraries, aar and jar extensions for android (and .so obviously)
     
  15. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    530
    Plugins/* is a bit special. To make the old setup compatible with the new plugin importer I think we are tagging all entries as plugins for the named platform.