Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android native targets missing. #407

Closed
danbrough opened this issue Mar 11, 2024 · 3 comments · Fixed by #420
Closed

Android native targets missing. #407

danbrough opened this issue Mar 11, 2024 · 3 comments · Fixed by #420

Comments

@danbrough
Copy link

No support for targets androidNativeX86, androidNativeX64 and androidNativeArm64.

Copy link

Thank you for reporting an issue. See the wiki for documentation and slack for questions.

@oshai
Copy link
Owner

oshai commented Apr 14, 2024

Seems like #420 fail publish with the following error:

FAILURE: Build failed with an exception.
[168](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:169)

[169](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:170)
* What went wrong:
[170](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:171)
51 actionable tasks: 51 executed
[171](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:172)
A problem was found with the configuration of task ':signAndroidNativeArm32Publication' (type 'Sign').
[172](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:173)
  - Gradle detected a problem with the following location: '/Users/runner/work/kotlin-logging/kotlin-logging/build/libs/kotlin-logging-6.0.5-javadoc.jar.asc'.
[173](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:174)
    
[174](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:175)
    Reason: Task ':publishAndroidDebugPublicationToSonatypeRepository' uses this output of task ':signAndroidNativeArm32Publication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
[175](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:176)
    
[176](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:177)
    Possible solutions:
[177](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:178)
      1. Declare task ':signAndroidNativeArm32Publication' as an input of ':publishAndroidDebugPublicationToSonatypeRepository'.
[178](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:179)
      2. Declare an explicit dependency on ':signAndroidNativeArm32Publication' from ':publishAndroidDebugPublicationToSonatypeRepository' using Task#dependsOn.
[179](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:180)
      3. Declare an explicit dependency on ':signAndroidNativeArm32Publication' from ':publishAndroidDebugPublicationToSonatypeRepository' using Task#mustRunAfter.
[180](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:181)
    
[181](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:182)
    For more information, please refer to https://docs.gradle.org/8.7/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
[182](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:183)

[183](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:184)
* Try:
[184](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:185)
> Run with --info or --debug option to get more log output.
[185](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:186)
> Run with --scan to get full insights.
[186](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:187)
> Get more help at https://help.gradle.org./
[187](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:188)

[188](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:189)
* Exception is:
[189](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:190)
org.gradle.internal.execution.WorkValidationException: A problem was found with the configuration of task ':signAndroidNativeArm32Publication' (type 'Sign').
[190](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:191)
  - Gradle detected a problem with the following location: '/Users/runner/work/kotlin-logging/kotlin-logging/build/libs/kotlin-logging-6.0.5-javadoc.jar.asc'.
[191](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:192)
    
[192](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:193)
    Reason: Task ':publishAndroidDebugPublicationToSonatypeRepository' uses this output of task ':signAndroidNativeArm32Publication' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
[193](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:194)
    
[194](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:195)
    Possible solutions:
[195](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:196)
      1. Declare task ':signAndroidNativeArm32Publication' as an input of ':publishAndroidDebugPublicationToSonatypeRepository'.
[196](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:197)
      2. Declare an explicit dependency on ':signAndroidNativeArm32Publication' from ':publishAndroidDebugPublicationToSonatypeRepository' using Task#dependsOn.
[197](https://github.com/oshai/kotlin-logging/actions/runs/8680612864/job/23801567076#step:4:198)
      3. Declare an explicit dependency on ':signAndroidNativeArm32Publication' from ':publishAndroidDebugPublicationToSonatypeRepository' using Task#mustRunAfter.

I will try to revert it.

@oshai oshai reopened this Apr 14, 2024
oshai added a commit that referenced this issue Apr 14, 2024
remove native android targets from build.
@oshai
Copy link
Owner

oshai commented Apr 14, 2024

Seems like this was caused by gradle/gradle#26091. Applied the fix suggested in gradle/gradle#26091 (comment)

@oshai oshai closed this as completed Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants