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

Task :shopify_flash-list:packageDebugResources FAILED #926

Open
Buzhifanji opened this issue Sep 28, 2023 · 8 comments
Open

Task :shopify_flash-list:packageDebugResources FAILED #926

Buzhifanji opened this issue Sep 28, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@Buzhifanji
Copy link

Task :@shopify-flash-list:processDebugManifest
package="com.shopify.reactnative.flash_list" found in source AndroidManifest.xml: D:\project\speech\node_modules@shopify\flash-list\android\src\main\AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Task :shopify_flash-list:packageDebugResources FAILED

Task :@shopify-flash-list:compileDebugKotlin
'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

w: Argfile not found: C:\Users\1\AppData\Local\kotlin\daemon\shopify-flash-list_debug
w: file:///D:/project/speech/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt:87:13 Name shadowed: actualScrollOffset
w: file:///D:/project/speech/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt:14:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///D:/project/speech/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt:147:30 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///D:/project/speech/node_modules/@shopify/flash-list/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt:148:18 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java
49 actionable tasks: 44 executed, 5 up-to-date

FAILURE: Build failed with an exception.

  • What went wrong:
    Some problems were found with the configuration of task ':shopify_flash-list:packageDebugResources' (type 'MergeResources').

    • Gradle detected a problem with the following location: 'D:\project\speech\node_modules@shopify\flash-list\android\build\generated\res\rs\debug'.

      Reason: Task ':shopify_flash-list:packageDebugResources' uses this output of task ':@shopify-flash-list:compileDebugRenderscript' 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 ':@shopify-flash-list:compileDebugRenderscript' as an input of ':shopify_flash-list:packageDebugResources'.
      2. Declare an explicit dependency on ':@shopify-flash-list:compileDebugRenderscript' from ':shopify_flash-list:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':@shopify-flash-list:compileDebugRenderscript' from ':shopify_flash-list:packageDebugResources' using Task#mustRunAfter.

      Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

    • Gradle detected a problem with the following location: 'D:\project\speech\node_modules@shopify\flash-list\android\build\generated\res\resValues\debug'.

      Reason: Task ':shopify_flash-list:packageDebugResources' uses this output of task ':@shopify-flash-list:generateDebugResValues' 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 ':@shopify-flash-list:generateDebugResValues' as an input of ':shopify_flash-list:packageDebugResources'.
      2. Declare an explicit dependency on ':@shopify-flash-list:generateDebugResValues' from ':shopify_flash-list:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':@shopify-flash-list:generateDebugResValues' from ':shopify_flash-list:packageDebugResources' using Task#mustRunAfter.

      Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

  • 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.

Platform:

  • Android

Environment

system: win10

react-native: 0.72.4

@shopify/flash-list: 1.6.1

kotlinVersion: 1.8.10

@Buzhifanji Buzhifanji added the bug Something isn't working label Sep 28, 2023
@Thedevyounes
Copy link

I have the same problem

@asfaqehussain
Copy link

Any solution for this issue ?

@BlackowlCi
Copy link

me too

1 similar comment
@alexandrecoura96
Copy link

me too

@lduran1997
Copy link

Same here. Any solutions?

@helenahargui
Copy link

same here...

@fernando-sendMail
Copy link

I came across this issue recently and, noticed that flash-list was being linked manually in the code base.

If you are linking manually, try doing auto linking and see if it works for you

@DevelopJKong
Copy link

I tried following the manual you linked, but it's still not working for me. Any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants