Giter Club home page Giter Club logo

Comments (27)

Volksfeld avatar Volksfeld commented on August 21, 2024 3

Going through the same problem as of today.
So far, I've tried downgrading AGP (no success) and upgrading gradle.
Using gradle 8.7 leads to problems with autolinking, which seems to be fixed in 0.75.1.
Unfortunately, the newer RN version breaks some deps (safe-area-context, expo-core, etc..).

Print of the autolinking problem
image

from react-native.

react-native-bot avatar react-native-bot commented on August 21, 2024
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.74.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

from react-native.

react-native-bot avatar react-native-bot commented on August 21, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

from react-native.

react-native-bot avatar react-native-bot commented on August 21, 2024
⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:

from react-native.

react-native-bot avatar react-native-bot commented on August 21, 2024
⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

from react-native.

cortinico avatar cortinico commented on August 21, 2024

I cannot reproduce your problem. Please provide a valid repro as I think this is specific to your setup.

Anyway, you can simply update the Gralde version in the file android/gradle/wrapper/gradle-wrapper.properties

from react-native.

YuriOlepir avatar YuriOlepir commented on August 21, 2024

I cannot reproduce your problem. Please provide a valid repro as I think this is specific to your setup.

Anyway, you can simply update the Gralde version in the file android/gradle/wrapper/gradle-wrapper.properties

Sorry, but this is not the exit, updating to the next gradle versions brings new problems connected with autolinking.

from react-native.

Arthur-Noh avatar Arthur-Noh commented on August 21, 2024

I have a same issue. (0.74.5)

from react-native.

cortinico avatar cortinico commented on August 21, 2024

Sorry, but this is not the exit, updating to the next gradle versions brings new problems connected with autolinking.

Then please provide a reproducer.
If I create a project with React Native 0.74.5 I can safely build without any problems so this is most likely introduced by a dependency of yours.

from react-native.

YuriOlepir avatar YuriOlepir commented on August 21, 2024

Sorry, but this is not the exit, updating to the next gradle versions brings new problems connected with autolinking.

Then please provide a reproducer. If I create a project with React Native 0.74.5 I can safely build without any problems so this is most likely introduced by a dependency of yours.

Could you please confirm that you have run the project on the latest mac os 14.6.1 (23G93)?

from react-native.

Arthur-Noh avatar Arthur-Noh commented on August 21, 2024

I'm using 14.6.1 (23G93).

Looking at the 0.75.1 guide, there is the following code in the app/build.gradle location.

app/build.gradle

react {
    ...
     /* Autolinking */
    autolinkLibrariesWithApp()
}

I put this in and tried (from 0.74.5 version), and I get Duplate class found in the file error, but I don't get an authLinking error.
(Of course, I don't think this is the right way.)

from react-native.

YuriOlepir avatar YuriOlepir commented on August 21, 2024

I'm using 14.6.1 (23G93).

Looking at the 0.75.1 guide, there is the following code in the app/build.gradle location.

app/build.gradle

react {
    ...
     /* Autolinking */
    autolinkLibrariesWithApp()
}

I put this in and tried (from 0.74.5 version), and I get Duplate class found in the file error, but I don't get an authLinking error. (Of course, I don't think this is the right way.)

Yes, I have been trying the same and i got such results also

from react-native.

Arthur-Noh avatar Arthur-Noh commented on August 21, 2024

I'm using 14.6.1 (23G93).
Looking at the 0.75.1 guide, there is the following code in the app/build.gradle location.
app/build.gradle

react {
    ...
     /* Autolinking */
    autolinkLibrariesWithApp()
}

I put this in and tried (from 0.74.5 version), and I get Duplate class found in the file error, but I don't get an authLinking error. (Of course, I don't think this is the right way.)

Yes, I have been trying the same and i got such results also

This way, it looks like it's working normally.
Could you give it a try?

app/build.gradle

react {
    ...
     /* Autolinking */
    autolinkLibrariesWithApp() // Add this line.
}

...

// Remove this line
// apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

...

from react-native.

YuriOlepir avatar YuriOlepir commented on August 21, 2024

@Arthur-Noh unfortunatly it doesn't help me, could you please share your entire app/build.gradle and settings.gradle?

from react-native.

cortinico avatar cortinico commented on August 21, 2024

@YuriOlepir we need a reproducer of your project using this template:
https://github.com/react-native-community/reproducer-react-native

without that we can't help further

from react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.