Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Could not determine the dependencies of task & Execution failed for task

Discussion in 'LevelPlay' started by Seven_Kingdom_Tech, Apr 30, 2024.

  1. Seven_Kingdom_Tech

    Seven_Kingdom_Tech

    Joined:
    Nov 10, 2023
    Posts:
    5
    I am using LevelPlay mediation Package 8.0.0 in Unity 2021.3.20f1

    I am having build failed issue with following Ad Network Plugins.

    Chartboost

    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine the dependencies of task ':launcher:lintVitalRelease'.
    > Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
    > Could not resolve com.ironsource.adapters:chartboostadapter:4.3.15.
    Required by:
    project :launcher > project :unityLibrary
    > Could not resolve com.ironsource.adapters:chartboostadapter:4.3.15.
    > Could not get resource 'https://android-sdk.is.com/com/iron...stadapter/4.3.15/chartboostadapter-4.3.15.pom'.
    > Could not GET 'https://android-sdk.is.com/com/iron...stadapter/4.3.15/chartboostadapter-4.3.15.pom'.
    > android-sdk.is.com

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 4s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    Meta


    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine the dependencies of task ':unityLibrary:compileReleaseAidl'.
    > Could not resolve all task dependencies for configuration ':unityLibrary:releaseCompileClasspath'.
    > Could not resolve com.ironsource.adapters:facebookadapter:4.3.46.
    Required by:
    project :unityLibrary
    > Could not resolve com.ironsource.adapters:facebookadapter:4.3.46.
    > Could not get resource 'https://android-sdk.is.com/com/ironsource/adapters/facebookadapter/4.3.46/facebookadapter-4.3.46.pom'.
    > Could not GET 'https://android-sdk.is.com/com/ironsource/adapters/facebookadapter/4.3.46/facebookadapter-4.3.46.pom'.
    > android-sdk.is.com

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 5s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)


    InMobi
    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':launcher:processReleaseResources'.
    > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
    > AAPT2 aapt2-4.0.1-6197926-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
    This should not happen under normal circumstances, please file an issue if it does.

    DT Exchange
    FAILURE: Build failed with an exception.

    * What went wrong:
    Could not determine the dependencies of task ':launcher:lintVitalRelease'.
    > Could not resolve all artifacts for configuration ':launcher:debugRuntimeClasspath'.
    > Could not resolve com.ironsource.adapters:fyberadapter:4.3.30.
    Required by:
    project :launcher > project :unityLibrary
    > Could not resolve com.ironsource.adapters:fyberadapter:4.3.30.
    > Could not get resource 'https://android-sdk.is.com/com/ironsource/adapters/fyberadapter/4.3.30/fyberadapter-4.3.30.pom'.
    > Could not GET 'https://android-sdk.is.com/com/ironsource/adapters/fyberadapter/4.3.30/fyberadapter-4.3.30.pom'.
    > android-sdk.is.com

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 4s
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    I successfully build with these AdNetworks : Unity Ads, AppLovin, Admob, Liftoff, Mintegral, Pangle, Smaato
     
  2. cnguyen_unitylevelplay

    cnguyen_unitylevelplay

    Unity Technologies

    Joined:
    Mar 23, 2023
    Posts:
    154
    @Seven_Kingdom_Tech
    Did your unity project originally run Levelplay mediation before you updated to the 8.0.0 package from UPM?

    Could you please provide a screenshot of the Ads Mediation > Network Manager menu and your selections?

    I just ran my demo app and was able to resolve all the networks you listed successfully. We might need to open up a support ticket to get a better handle of your settings
     
  3. Seven_Kingdom_Tech

    Seven_Kingdom_Tech

    Joined:
    Nov 10, 2023
    Posts:
    5
    Thanks for your reply. I am testing in empty project. I am using first time level play mediation package 8.0.0. I successfully make build with these networks which can be seen in the attached screenshot levelplay -.png
     
    Last edited: May 2, 2024
  4. cnguyen_unitylevelplay

    cnguyen_unitylevelplay

    Unity Technologies

    Joined:
    Mar 23, 2023
    Posts:
    154
  5. Seven_Kingdom_Tech

    Seven_Kingdom_Tech

    Joined:
    Nov 10, 2023
    Posts:
    5
    I tried but I don't think it works. Because when I am adding manually after resolving it doesn't show in dependencies in mainTemplate file. See Screenshot. Is it ok ?? 1.png
     
  6. cnguyen_unitylevelplay

    cnguyen_unitylevelplay

    Unity Technologies

    Joined:
    Mar 23, 2023
    Posts:
    154
    I can see those highlighted network adapters/sdks aren't being applied here for some reason.

    Could we try using the mainTemplate.gradle file instead of including the dependencies (Custom Main Gradle Template)?
     
  7. Seven_Kingdom_Tech

    Seven_Kingdom_Tech

    Joined:
    Nov 10, 2023
    Posts:
    5
    When we click on custom Custom Main Gradle Template Unity add all dependencies in the process of build that's why Plugins/Android folder is empty.

    I think I can not follow manual integration. Please tell me any other method so I can build thanks.