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

Error when importing firebase sdk

Discussion in 'Scripting' started by mahdiii, Jan 19, 2019.

  1. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    855
    Hi. I get the error when I add firebase sdk to my project. I have tested with run in administrators as well.

    Code (CSharp):
    1. Stopped polling job due to exception: System.UnauthorizedAccessException: Access to the path is denied.
    2.   at System.IO.Directory.Move (System.String sourceDirName, System.String destDirName) [0x000f8] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:403
    3.   at GooglePlayServices.DefaultResolver.ProcessAar (System.String dir, System.String aarFile, Boolean antProject, GooglePlayServices.AndroidAbis& abis) [0x002bf] in Z:\tmp\tmp.mz1RZCSjez\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\DefaultResolver.cs:395
    4.   at GooglePlayServices.ResolverVer1_1+<ProcessAars>c__AnonStorey8.<>m__0 () [0x000c7] in Z:\tmp\tmp.mz1RZCSjez\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\ResolverVer1_1.cs:1374
    5.   at Google.RunOnMainThread.ExecutePollingJobs () [0x0004a] in Z:\tmp\tmp.x6o0WrFOpy\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:286
    6. UnityEngine.Debug:LogError(Object)
    7. Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:289)
    8. Google.RunOnMainThread:<ExecuteAll>m__1() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:400)
    9. Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
    10. Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:392)
    11. UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
     
  2. juanramonjimenez

    juanramonjimenez

    Joined:
    Dec 2, 2018
    Posts:
    2
    Wow! I have exactly the same error... very frustrated.

    Anyone could help?

    Thanks.
     
  3. Behzad65

    Behzad65

    Joined:
    Aug 5, 2016
    Posts:
    8
    I have the same problem while importing google play services, any solution?!!


    Code (CSharp):
    1. Stopped polling job due to exception: System.UnauthorizedAccessException: Access to the path is denied.
    2.   at System.IO.Directory.Move (System.String sourceDirName, System.String destDirName) [0x000dd] in <f2e6809acb14476a81f399aeb800f8f2>:0
    3.   at GooglePlayServices.DefaultResolver.ProcessAar (System.String dir, System.String aarFile, System.Boolean antProject, GooglePlayServices.AndroidAbis& abis) [0x002be] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/DefaultResolver.cs:395
    4.   at GooglePlayServices.ResolverVer1_1+<ProcessAars>c__AnonStorey1F.<>m__35 () [0x000c7] in /Users/smiles/dev/src/unity-jar-resolver/source/PlayServicesResolver/src/ResolverVer1_1.cs:1374
    5.   at Google.RunOnMainThread.ExecutePollingJobs () [0x0004a] in /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:286
    6. UnityEngine.Debug:LogError(Object)
    7. Google.RunOnMainThread:ExecutePollingJobs() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:289)
    8. Google.RunOnMainThread:<ExecuteAll>m__6() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:400)
    9. Google.RunOnMainThread:RunAction(Action) (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
    10. Google.RunOnMainThread:ExecuteAll() (at /Users/smiles/dev/src/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:392)
    11. UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
     
  4. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    855
    Do you use Admob or unityAds and Unity IAP as well?
     
  5. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,294
    Try disabling auto-resolution in play services resolver settings, and then importing the package. That might work.
     
  6. toantbk

    toantbk

    Joined:
    Jun 14, 2014
    Posts:
    8
    I got the same error, tried some solution but not work :'(
    I'm using Unity IAP & Firebase

    Stopped polling job due to exception: System.UnauthorizedAccessException: Access to the path is denied.
    at System.IO.Directory.Move (System.String sourceDirName, System.String destDirName) [0x000dd] in <ac823e2bb42b41bda67924a45a0173c3>:0
    at GooglePlayServices.DefaultResolver.ProcessAar (System.String dir, System.String aarFile, System.Boolean antProject, GooglePlayServices.AndroidAbis& abis) [0x002bf] in Z:\tmp\tmp.mz1RZCSjez\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\DefaultResolver.cs:395
    at GooglePlayServices.ResolverVer1_1+<ProcessAars>c__AnonStorey8.<>m__0 () [0x000c7] in Z:\tmp\tmp.mz1RZCSjez\third_party\unity\unity_jar_resolver\source\PlayServicesResolver\src\ResolverVer1_1.cs:1374
    at Google.RunOnMainThread.ExecutePollingJobs () [0x0004a] in Z:\tmp\tmp.x6o0WrFOpy\third_party\unity\unity_jar_resolver\source\VersionHandlerImpl\src\RunOnMainThread.cs:286
    UnityEngine.Debug:LogError(Object)
    Google.RunOnMainThread:ExecutePollingJobs() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:289)
    Google.RunOnMainThread:<ExecuteAll>m__1() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:400)
    Google.RunOnMainThread:RunAction(Action) (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:234)
    Google.RunOnMainThread:ExecuteAll() (at Z:/tmp/tmp.x6o0WrFOpy/third_party/unity/unity_jar_resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:392)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

     
  7. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    855
    I had many problems with new resolver (Failed to resolution). So I got the old one (---> jar resolver). It is OK about google services and admob.
    Firebase uses new resolver version. I think when I have simple empty project, it is OK.
     
  8. Reza-HP

    Reza-HP

    Joined:
    Aug 27, 2017
    Posts:
    4
    You first have to add your project in firebase console and download the config file based on your platform you wanna build your game on and put it in your asset folder and then import firebase package to your project