Skip to content

[Android] Build fails when upgrading react-native 0.83.x due to gradle 9 #468

Description

@arelstone

Describe the bug?

After upgrading to react-native 0.83.x my build fails due to gradle being upgraded to version 9.0.0

What is expected to happen?

Build should not fail

What is the actual behavior?

The build fails

Reproduction Steps?

Change the distributionUrl in android/gradle/wrapper/gradle-wrapper.properties to distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip

Additional Information?

A pull request has been created. Untill this is approved, merged and published this patch can be used

diff --git a/node_modules/@okta/okta-react-native/android/build.gradle b/node_modules/@okta/okta-react-native/android/build.gradle
index df85505..bb30c8d 100644
--- a/node_modules/@okta/okta-react-native/android/build.gradle
+++ b/node_modules/@okta/okta-react-native/android/build.gradle
@@ -110,7 +110,7 @@ afterEvaluate { project ->
         def javaCompileTask = variant.javaCompileProvider.get()
 
         task "jar${name}"(type: Jar, dependsOn: javaCompileTask) {
-            from javaCompileTask.destinationDir
+            from javaCompileTask.destinationDirectory
         }
     }
 

SDK Version

2.17.2

Build Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions