Skip to content

Could not get unknown property 'libs' #15

@frenic

Description

@frenic

Build failure when upgrading to 1.2.1:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/frenic/project/node_modules/react-native-queue-it/android/build.gradle' line: 88

* What went wrong:
A problem occurred evaluating project ':react-native-queue-it'.
> Could not get unknown property 'libs' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Currently using this patch as workaround:

diff --git a/node_modules/react-native-queue-it/android/build.gradle b/node_modules/react-native-queue-it/android/build.gradle
index dc883f3..c8cffd1 100644
--- a/node_modules/react-native-queue-it/android/build.gradle
+++ b/node_modules/react-native-queue-it/android/build.gradle
@@ -102,8 +102,8 @@ android {
 def kotlin_version = getExtOrDefault('kotlinVersion')
 dependencies {
   implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
-  implementation(libs.react.android)
-  implementation(libs.fbjni)
+  implementation "com.facebook.react:react-android"
+  implementation "com.facebook.fbjni:fbjni:0.5.1"
 
   //App dependencies
   implementation('com.queue-it.androidsdk:library:2.0.36')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions