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

Found dependencies: com.android.support:support-v4 required by (this app)

Discussion in 'Android' started by LionFische, Feb 17, 2017.

  1. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    Hi, I am developing an App at the moment and have run in to some problems.

    I have a simple game created, it's called 'Pin Cushion'. You can see it in it's current form on the Play store. (https://play.google.com/store/apps/details?id=com.zweiHStudio.HH).

    I had it running fine and had integrated leaderboards into it. Two days ago, I ran some updates. I have the latest Android SDK, GooglePLayGames plugin and my Samsung S7 edge also updated to Android 7, Nougat.

    Since these updates, when I try and build and deploy my app to my phone I am getting a series of warnings. The app then tries to load, it goes to the Unity splash screen, then goes blank and closes.

    I've uninstalled everything and then reinstalled. I've checked my SDK paths. No matter what though i can not get the game to build and run on my phone. The full list of warnings I receive are below.

    Found dependencies:
    com.android.support:support-v4 required by (this app)
    com.google.android.gms:play-services-base required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-drive:10.2.0)
    com.google.android.gms:play-services-basement required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0, com.google.android.gms:play-services-tasks:10.2.0)
    com.google.android.gms:play-services-drive required by (com.google.android.gms:play-services-games:9+)
    com.google.android.gms:play-services-tasks required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0)
    com.google.android.gms:play-services-auth-base required by (com.google.android.gms:play-services-auth:9+)
    com.android.support:support-annotations required by (com.android.support:support-v4:23.1+)
    com.android.support:support-v4 required by (com.google.android.gms:play-services-basement:10.2.0)
    UnityEngine.Debug:Log(Object)
    Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
    Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
    GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
    GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
    GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
    GooglePlayServices.PlayServicesResolver:Resolve(Action)
    GooglePlayServices.PlayServicesResolver:AutoResolve()
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


    WARNING: No compatible versions of com.android.support:support-v4 required by (com.google.android.gms:play-services-basement:10.2.0), will try using the latest version 24.0.0
    UnityEngine.Debug:Log(Object)
    Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
    Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
    GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
    GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
    GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
    GooglePlayServices.PlayServicesResolver:Resolve(Action)
    GooglePlayServices.PlayServicesResolver:AutoResolve()
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()



    Found dependencies:
    com.android.support:support-annotations required by (this app)
    com.google.android.gms:play-services-base required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-drive:10.2.0)
    com.google.android.gms:play-services-basement required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0, com.google.android.gms:play-services-tasks:10.2.0)
    com.google.android.gms:play-services-drive required by (com.google.android.gms:play-services-games:9+)
    com.google.android.gms:play-services-tasks required by (com.google.android.gms:play-services-games:9+, com.google.android.gms:play-services-base:10.2.0)
    com.google.android.gms:play-services-auth-base required by (com.google.android.gms:play-services-auth:9+)
    com.android.support:support-annotations required by (com.android.support:support-v4:23.1+, com.android.support:support-v4:24.0.0)
    com.android.support:support-v4 required by (com.google.android.gms:play-services-basement:10.2.0)
    UnityEngine.Debug:Log(Object)
    Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
    Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
    GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
    GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
    GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
    GooglePlayServices.PlayServicesResolver:Resolve(Action)
    GooglePlayServices.PlayServicesResolver:AutoResolve()
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


    WARNING: No compatible versions of com.android.support:support-annotations required by (com.android.support:support-v4:23.1+, com.android.support:support-v4:24.0.0), will try using the latest version 24.0.0
    UnityEngine.Debug:Log(Object)
    Google.JarResolver.PlayServicesSupport:Log(String, Boolean)
    Google.JarResolver.PlayServicesSupport:ResolveDependencies(Boolean, String)
    GooglePlayServices.ResolverVer1_1:DoResolutionNoAndroidPackageChecks(PlayServicesSupport, String, OverwriteConfirmation)
    GooglePlayServices.<DoResolution>c__AnonStorey5:<>m__8()
    GooglePlayServices.ResolverVer1_1:DoResolution(PlayServicesSupport, String, OverwriteConfirmation, Action)
    GooglePlayServices.PlayServicesResolver:Resolve(Action)
    GooglePlayServices.PlayServicesResolver:AutoResolve()
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


    Sorry for all the text. I'm stumped on this and would really appreciate some help. I've searched a lot on the web, but not found a solution.

    Regards,
    Hugh.
     
  2. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    Included these in my install....
     

    Attached Files:

  3. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    I've since removed all attempts to link the project to Google Play services. I can now get a build to run on the Samsung S7, but....it looks like this for some reason. Menu functions, but I don't know what is happening to the rendering.

    Regards,
    Hugh.
     

    Attached Files:

  4. image28

    image28

    Joined:
    Jul 17, 2013
    Posts:
    457
    That looks like a shader error. Which version of unity are you using. Some recent versions have some shader compiler bugs forget which versions.

    I've found it easier to install googlePlay plugin to an empty project, go through and remove all google play files, then copy it over. Then repeat the process when updating.
     
  5. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    Hi Image28, thanks for the reply.

    I'm currently rebuilding from an earlier version (thank heavens for version control!). It is currently running and rendering fine pre any integration with Google Play services.

    I'll try what you suggest and import the Google Play package into a fresh project and then build on top of it.

    Thanks for the help, I'll update as I make progress.

    Hugh.
     
  6. SeverCr0w

    SeverCr0w

    Joined:
    Nov 7, 2016
    Posts:
    7
    I have the same problem, can you please explain step by step how did you fix google play services?
     
    Last edited: Feb 20, 2017
  7. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    Hi SeverCrow.

    I have at this stage rebuilt my project but I am still running into exactly the same problems. The APK is deploying to my Android device but it will not load past the Unity Splash screen. I get the same errors as above. I've done a lot of searching and see others have had the problem at different stages of updates. I've tried all suggested solutions but to no avail.

    If you come across a solution I would appreciate if you get could get back to me.

    Hugh.
     
  8. IgorDemchuk

    IgorDemchuk

    Joined:
    Mar 9, 2015
    Posts:
    19
    Have the same problem.
    If I disable script with Google Play services implementation, my app can load after the splash screen.
    Seem like app crashes when it comes to loading GP Services code.
     
  9. IgorDemchuk

    IgorDemchuk

    Joined:
    Mar 9, 2015
    Posts:
    19
  10. LionFische

    LionFische

    Joined:
    Oct 16, 2015
    Posts:
    107
    Thank you so much folks! This has been a week of frustration. I've just done the file replacing and it seems to have built, deployed and run on first test. I'm hoping this is it.

    After the build, Unity gave me the following prompt. This is the kiss of death!

    I hope this continues to work!!!

    Hugh.
     

    Attached Files:

  11. mavs30003

    mavs30003

    Joined:
    Sep 29, 2016
    Posts:
    2
    How have you replace 10.2.0 by 10.0.1?? I have this:
     

    Attached Files:

  12. mavs30003

    mavs30003

    Joined:
    Sep 29, 2016
    Posts:
    2
    First, Now, I click in my button Google Play Games, but.... I do not get the mail to put it in google play games and after my App is closed.