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

Question Getting error when try to build my android game

Discussion in 'Getting Started' started by VladimirYakuba, Jan 29, 2023.

  1. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    getting this error at Gradle build stage

    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'.
    > Resolved 'androidx.lifecycle:lifecycle-service:2.0.0' which is not part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:viewmodel:1.1.1' which is part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:livedata:1.1.1' which is part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:runtime:1.1.1' which is part of the dependency lock state
    > Did not resolve 'com.android.support:support-annotations:26.1.0' which is part of the dependency lock state
    > Did not resolve 'android.arch.core:runtime:1.1.1' which is part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:livedata-core:1.1.1' which is part of the dependency lock state
    > Did not resolve 'com.android.support:support-core-utils:26.1.0' which is part of the dependency lock state
    > Resolved 'androidx.lifecycle:lifecycle-extensions:2.0.0' which is not part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:common:1.1.1' which is part of the dependency lock state
    > Did not resolve 'com.android.support:support-core-ui:26.1.0' which is part of the dependency lock state
    > Did not resolve 'com.android.support:support-compat:26.1.0' which is part of the dependency lock state
    > Did not resolve 'android.arch.lifecycle:extensions:1.1.1' which is part of the dependency lock state
    > Did not resolve 'android.arch.core:common:1.1.1' which is part of the dependency lock state
    > Did not resolve 'com.android.support:support-fragment:26.1.0' which is part of the dependency lock state
    > Resolved 'androidx.lifecycle:lifecycle-process:2.0.0' which is not part of the dependency lock state

    im trys popular answers on stackoverflow but it doesent worked for me
    what can be reason for this error?
     
  2. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Obvious answer, do you have the Android module installed? What version of Unity are you on?
     
  3. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    My Unity version upload_2023-1-29_17-9-7.png

    Active modules
    upload_2023-1-29_17-9-30.png
     
  4. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    After you first install the modules, you need to restart the PC for it all to take effect.

    Well that's what someone on here said last week :D
     
  5. VladimirYakuba

    VladimirYakuba

    Joined:
    Jan 26, 2023
    Posts:
    6
    I installed this modules before development. i am working at this game about 2 mounths in this period im sure PC was restarted

    sorry for my englisho_O:eek::eek::eek:
     
  6. a17714375388

    a17714375388

    Joined:
    Sep 23, 2022
    Posts:
    10
    I get simliar problem to, do you find any solution?
     
  7. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    I'm pretty sure it was announced last week that 2020.3 is no longer officially supported.