Search Unity

Error Message upon opening Build Settings

Discussion in 'Editor & General Support' started by bl-mm, Nov 27, 2018.

  1. bl-mm

    bl-mm

    Joined:
    Nov 23, 2018
    Posts:
    4
    Hi,

    I am behind a company Proxy using Unity V 2018.2.17f1 (also tried some beta builds).

    I want to setup Android Build (I installed Android Studio + SDK).

    I get this error in the console when opening the Build Settings:
    Code (CSharp):
    1. Operation UnityEditor.PackageManager.Requests.SearchRequest failed with Error: UnityEditor.PackageManager.Error
    2. UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
    I created a new + empty 2D Project.

    Building fails too. What is wrong?!

    Here is the Editor.log
    I marked the position when I opened the Build Settings with
    "BUILD SETTINGS OPENED!!!!!!!!!!!!!!!!!!!!!!!!!!"

    Here are the Android preferences:
    sdksettings.PNG

    tried the included JDK too, didn't work either.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    It could be your proxy, note the errors. Does it work when you try from home, for example? Can you access these URLs from a browser, they download the pom file for me when I click on the links

    Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
    > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
    > Connect to dl.google.com:443 [dl.google.com/172.217.20.142] failed: Connection refused: connect
    > Could not resolve com.android.tools.build:gradle:3.0.1.
    > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
    > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom'.
    > Connect to jcenter.bintray.com:443 [jcenter.bintray.com/5.153.35.248] failed: Connection refused: connect
     
  3. bl-mm

    bl-mm

    Joined:
    Nov 23, 2018
    Posts:
    4
    Hi,

    I have no issues at home. I just tried downloading the pom file and it works. I guess the proxy settings are not applied for the process which is downloading the pom file somehow.

    I guess the error I get when opening the Build Settings has something to do with this too?

    I've read something about adding proxy settings to gradle. Any idea how to do that?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    You will want to check with your network administrator to allow access.
     
  5. AngelClannad

    AngelClannad

    Joined:
    Mar 16, 2019
    Posts:
    6
    Hello , have you fixed this problem?
    I have the same error when I open building settings.I just want to build a standalone project and I really don't know how to fix it.
     
  6. KalyaniKolape

    KalyaniKolape

    Joined:
    May 21, 2019
    Posts:
    3
    I am getting same error in 2018.2.0f2. This version is mandatory for my project.

    Operation UnityEditor.PackageManager.Requests.SearchRequest failed with Error: UnityEditor.PackageManager.Error

    UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

    I tried to clear cache from AppData.
    I tried to set No_Proxy also.
    Installed same software on another desktop. Still no luck.

    Please help me


     
  7. bl-mm

    bl-mm

    Joined:
    Nov 23, 2018
    Posts:
    4
    Hi everyone,

    I found a (rather annoying) solution for now on how to build the Android project:
    In the Unity Build Settings choose "Export Project". This will create a project you can open with Android Studio. And to make it work you should configure your proxy for Android Studio and (IMPORTANT) edit the gradle.properties:

    systemProp.http.proxyHost=YOURPROXY
    systemProp.http.proxyPort=YOURPROXYPORT
    systemProp.http.nonProxyHosts=localhost
    systemProp.https.proxyHost=YOURPROXY
    systemProp.https.proxyPort=YOURPROXYPORT
    systemProp.https.nonProxyHosts=localhost


    This has to be added to the gradle.properties

    I got rid of the errors with Unity 2018.4.0f1 by setting my HTTP_PROXY and HTTPS_PROXY environment variables like this:
    http://YOUR_PROXY_HOST:PROXY_PORT
    But I can't connect to the Unity Services from within the editor ... this part seems to be rather unpolished on Unity's end.


    @JeffDUnity3D
    I know that the Unity editor generates this project in a temp folder. Is there a way to add the gradle.properties entries inside of Unity?! So it works out of the box with the editor and not needing to open Android Studio?!