Shopify / flash-list

A better list for React Native
https://shopify.github.io/flash-list/
MIT License
5.46k stars 281 forks source link

Android build does not work after installing FlashList. #900

Open shk2000v opened 1 year ago

shk2000v commented 1 year ago

Current behavior

Enter 'npx react-native run-android' and get the following results.

myfridge git:(shk/screen-auth) yarn android
yarn run v1.22.19
$ react-native run-android
info JS server already running.
info Installing the app...
> Task :app:checkDebugDuplicateClasses FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings
169 actionable tasks: 6 executed, 163 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

FAILURE: Build failed with an exception.

Expected behavior

It's work normally

To Reproduce

Platform:

Environment

michalfirszt commented 1 year ago

Add kotlinVersion to android/build.gradle

example:

buildscript {
    ext {
        ...
        kotlinVersion = "1.8.20"
    }
}
devigor21 commented 1 year ago

the largest kotlinVersion that has launched is "1.7.22"

"@shopify/flash-list": "^1.6.1", "react-native": "0.72.4"