Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout error #295

Open
Jitesh0404 opened this issue Nov 8, 2024 · 20 comments
Open

layout error #295

Jitesh0404 opened this issue Nov 8, 2024 · 20 comments

Comments

@Jitesh0404
Copy link

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

}

@loidodev
Copy link

same issue

@NupurKukkar
Copy link

Same issue any one found any solution ?

@Jin-seop
Copy link

+1

1 similar comment
@borisYojji
Copy link

+1

@jaci001
Copy link

jaci001 commented Nov 19, 2024

Same issue any one found any solution ?

@aamiranwar001
Copy link

+1

2 similar comments
@andrazperson
Copy link

+1

@kenteman
Copy link

+1

@moniquealtero
Copy link

Same after upgrading to RN latest version.

@zjkuang
Copy link

zjkuang commented Nov 26, 2024

Same issue after upgrading to RN 0.75.4

@ReijiTBK
Copy link

ReijiTBK commented Dec 3, 2024

+1

1 similar comment
@Purushottam18
Copy link

+1

@ig-aellison
Copy link

ig-aellison commented Dec 4, 2024

+1. EDIT to add: upgrading to RN 0.76.

@yangjianger
Copy link

Updating android studio to android-studio-2024.2.1.11 can solve this problem

@jaehuiLee
Copy link

+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.

@GlennAzx
Copy link

+1 Same RN 0.76.5

@sardarasmita
Copy link

+1

@alok1upadhyay
Copy link

Same issue on upgrading from 0.75.1 to 0.76

@hamidkeyhani
Copy link

Same issue

@GlennAzx
Copy link

Manually updating each file from old to new using the update helper fixed it for me. https://react-native-community.github.io/upgrade-helper/

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

No branches or pull requests