react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

The Kotlin Gradle plugin was loaded multiple times in different subprojects

Open KrisLau opened this issue 5 years ago • 6 comments

Environment

"react": "^17.0.2",
    "react-native": "^0.64.0",
    "react-native-pager-view": "^5.1.7",
    "react-native-unimodules": "^0.13.3",
    "react-native-webview": "^11.4.3"

Description

Getting this error on build:

The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build. 
This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
If the parent project does not need the plugin, add 'apply false' to the plugin line.
See: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
The Kotlin plugin was loaded in the following projects: ':react-native-pager-view', ':react-native-webview'

Reproducible Demo

  1. Install react-native-pager-view, and react-native-webview.
  2. Build the app & run react-native run-android

KrisLau avatar May 28 '21 16:05 KrisLau

same here I am also facing the same problem. did you get any solution? @KrisLau

rajkinkhabwala avatar May 29 '21 18:05 rajkinkhabwala

@rajkinkhabwala Nope not yet unfortunately

KrisLau avatar Jun 01 '21 15:06 KrisLau

Could you try this version ? https://github.com/callstack/react-native-pager-view/releases/tag/v5.2.1

troZee avatar Jun 11 '21 13:06 troZee

@troZee Sorry for the late reply! I just tested it with v5.2.1 but I'm still getting the same error unfortunately

KrisLau avatar Jun 15 '21 21:06 KrisLau

worked for me! THX!

lucas0205 avatar Jun 19 '21 18:06 lucas0205

@troZee Sorry for the late reply! I just tested it with v5.2.1 but I'm still getting the same error unfortunately

Hey, the app compiles but it's buggy, if like swipe faster then it starts swiping itself, and it's annoying so I have to go back to the previous screen and again try it but still works but it is buggy.

rajkinkhabwala avatar Jun 27 '21 20:06 rajkinkhabwala