korge icon indicating copy to clipboard operation
korge copied to clipboard

Can not launch korge-hello-world

Open t0in4 opened this issue 1 year ago • 5 comments
trafficstars

Hello, trying to launch korge-hello-world project and stuck with this build errors. Any help appreciated

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':lintVitalAnalyzeRelease' (type 'AndroidLintAnalysisTask').
  - Gradle detected a problem with the following location: '/home/IdeaProjects/korge-hello-world/build/processedResources/jvm/main'.
    
    Reason: Task ':lintVitalAnalyzeRelease' uses this output of task ':jvmProcessResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':jvmProcessResources' as an input of ':lintVitalAnalyzeRelease'.
      2. Declare an explicit dependency on ':jvmProcessResources' from ':lintVitalAnalyzeRelease' using Task#dependsOn.
      3. Declare an explicit dependency on ':jvmProcessResources' from ':lintVitalAnalyzeRelease' using Task#mustRunAfter.
    
    For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':lintAnalyzeDebug' (type 'AndroidLintAnalysisTask').
  - Gradle detected a problem with the following location: '/home/deaProjects/korge-hello-world/build/processedResources/jvm/main'.
    
    Reason: Task ':lintAnalyzeDebug' uses this output of task ':jvmProcessResources' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':jvmProcessResources' as an input of ':lintAnalyzeDebug'.
      2. Declare an explicit dependency on ':jvmProcessResources' from ':lintAnalyzeDebug' using Task#dependsOn.
      3. Declare an explicit dependency on ':jvmProcessResources' from ':lintAnalyzeDebug' using Task#mustRunAfter.
    
    For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

* 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 2s
Configuration cache entry reused.
5:49:35 PM: Execution finished 'build'.

t0in4 avatar Dec 17 '23 22:12 t0in4

This lintVitalAnalyzeRelease seems to happen a lot lately but not to everyone nor to CI. Which task are you running when getting that error? Is it runJvm or something else? Do you have the Android SDK installed?

soywiz avatar Jan 03 '24 14:01 soywiz

Hello! I just tried to launch korge-hello-world project in Intellij Idea Community. Android SDK installed in /home/Android/Sdk

t0in4 avatar Jan 04 '24 08:01 t0in4

Can you provide more information? I'm asuming it is linux from the path, which specific operating system, which JDK is installed and in path, and which intellij version are you using?

soywiz avatar Jan 04 '24 13:01 soywiz

Thank you, I am very appreciated

  1. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
  2. openjdk version "17.0.9" 2023-10-17 OpenJDK Runtime Environment (build 17.0.9+9-Debian-1deb12u1) OpenJDK 64-Bit Server VM (build 17.0.9+9-Debian-1deb12u1, mixed mode, sharing)
  3. /usr/bin/java
  4. Intellij Idea 2023.3.2 (Community Edition) Build #IC-233.13135.103, built on December 20, 2023 Runtime version: 17.0.9+7-b1087.9 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

t0in4 avatar Jan 04 '24 19:01 t0in4

After some workaround output changed to - Configuration with name 'androidx.core:core-ktx:1.12.0' not found

t0in4 avatar Jan 04 '24 19:01 t0in4