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

Problem With Google Play Service

Discussion in 'Scripting' started by MG, Aug 17, 2015.

  1. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    I have downloaded the newest Google Play Service. and activated the signin and all the stuff.

    When i want to build the game, i get 3 errors

    Error 1 :
    Code (CSharp):
    1. Project 'D:\Spil Project\Color or Word\Assets\Plugins\Android\MainLibProj' is missing AndroidManifest.xml file.
    2. UnityEditor.HostView:OnGUI()
    3.  

    Error 2 :
    Code (CSharp):
    1. UnityException: Adding Android library projects failed!
    2. UnityEditor.Android.AndroidLibraries.AddLibraryProject (System.String projectPropertiesPath)
    3. UnityEditor.Android.AndroidLibraries.FindAndAddLibraryProjects (System.String searchPattern)
    4. UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options)
    5. UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options)
    6. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    7. UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
    8. UnityEditor.HostView:OnGUI()
    9.  
    Error 3 :
    Code (CSharp):
    1. Error building Player: UnityException: Adding Android library projects failed!
    2.  
     
  2. sz-Bit-Barons

    sz-Bit-Barons

    Joined:
    Nov 12, 2013
    Posts:
    150
    Which Google Play Services Plugin do you use?
    I integrated the prime31 plugin, but you probably have another one...

    However: it would be probably the best if you ask for support from the developer of the plugin.
     
  3. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
  4. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    3,510
    I had tried using the GPG plugin you're referencing and had nothing but problems with it. Ended up stripping it all out and going with prime[31]'s.
     
  5. MG

    MG

    Joined:
    Nov 10, 2012
    Posts:
    190
    Any one else who know how to fix it?
     
  6. sz-Bit-Barons

    sz-Bit-Barons

    Joined:
    Nov 12, 2013
    Posts:
    150
    for your error 1:
    place a file called "AndroidManifest.xml" in the folder "D:\Spil Project\Color or Word\Assets\Plugins\Android\MainLibProj".
    open it with a text editor and place the following inside:
    Code (csharp):
    1.  
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="6171000" android:versionName="6.1.71-000" package="com.google.android.gms">
    3.   <uses-sdk android:minSdkVersion="9"/>
    4.   <application/>
    5. </manifest>
    Not sure if it works with your plugin but I think it is the thing you need.

    (you may delete the "uses-sdk" node... if you have a minimum android version to support, then find out the sdk version number and place it here. If you have more than one AndroidManifest.xml make sure there is the same minSdkVersion in all manifests).
     
  7. GameMaster5

    GameMaster5

    Joined:
    Oct 4, 2015
    Posts:
    3
    Hi i am facing same issue with same plugin from github has anyone solved this issue.
    the issue is with sample projects which are given in plug in