layout error
e: file:///C:/Users/Jitesh/OneDrive/Desktop/gurujiastroapp/node_modules/@react-native/gradle-plugin/settings-plugin/src/main/kotlin/com/facebook/react/ReactSettingsExtension.kt:26:16 Unresolved reference: layout
Here is my build.gradle file
buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 21 compileSdkVersion = 34 targetSdkVersion = 34 // Remove any sourceCompatibility and targetCompatibility here if present // Instead, use: androidXCore = "1.10.1" kotlinVersion = "1.8.0" reactNativeGradlePluginVersion = "5.0.4" } repositories { google() mavenCentral() } dependencies { classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") classpath("com.facebook.react:react-native-gradle-plugin:$reactNativeGradlePluginVersion")
}
} apply plugin: "com.facebook.react.rootproject" // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { // ...
// Add the dependency for the Google services Gradle plugin
// id 'com.google.gms.google-services' version '4.4.1' apply false
}
same issue
Same issue any one found any solution ?
+1
+1
Same issue any one found any solution ?
+1
+1
+1
Same after upgrading to RN latest version.
Same issue after upgrading to RN 0.75.4
+1
+1
+1. EDIT to add: upgrading to RN 0.76.
Updating android studio to android-studio-2024.2.1.11 can solve this problem
+1, I updated android-studio, but it didn't solve the problem. I updated the node, and I've been stuck with this for days.
+1 Same RN 0.76.5
+1
Same issue on upgrading from 0.75.1 to 0.76
Same issue
Manually updating each file from old to new using the update helper fixed it for me. https://react-native-community.github.io/upgrade-helper/
Same issue when created new project (0.76.5)
Same issue while updating RN from 0.71.14 to 0.77 Android Studio: 2024.1.2 Mac OS: 14.6.1
Thanks
+1 RN 0.73.4 to 0.76.6
This is caused by a dependency that is using deprecated com.android.support libraries. By the moment, I solved it by (re)enabling jettifier (discontinued) in gradle.properties file:
android/gradle.properties
android.enableJetifier=true
What fixed it for me was to add distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip to android/gradle/wrapper/gradle-wrapper.properties. I had forgotten to update this in the migration process.
+1 someone please share the solution.
I've been battling this problem for days now. I've tried all the solutions written here but it's still not resolved. Can someone help?
I'm battling this too. I suspect one of my dependencies is causing the issue, but I haven't determined which one.
I'm battling this too. I suspect one of my dependencies is causing the issue, but I haven't determined which one.
I was able to solve this. My issue was react-native-emoji-modal had an older react-native version. This caused an older version of @react-native/gradle-plugin to be installed and they conflicted.
Try running npm list react-native @react-native/gradle-plugin and ensure all your deps are updated properly.