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

build error #45427

Closed
karthikkarunanithi91 opened this issue Jul 14, 2024 · 3 comments
Closed

build error #45427

karthikkarunanithi91 opened this issue Jul 14, 2024 · 3 comments
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer

Comments

@karthikkarunanithi91
Copy link

Description

Build error

Steps to reproduce

npm start android

React Native Version

^0.73.8

Affected Platforms

Runtime - Android

Output of npx react-native info

android\app\src\main\java\com\fctechx\easycam\CameraControllerViewModel.java:7: error: cannot find symbol
import androidx.lifecycle.AndroidViewModel;

     "react": "18.2.0",
    "react-native": "^0.73.8",

   def lifecycle_version = "2.5.1"
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

Stacktrace or Logs

android\app\src\main\java\com\fctechx\easycam\CameraControllerViewModel.java:7: error: cannot find symbol
import androidx.lifecycle.AndroidViewModel;

     "react": "18.2.0",
    "react-native": "^0.73.8",

   def lifecycle_version = "2.5.1"
    implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
    implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
    implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

Reproducer

karthik

Screenshots and Videos

No response

Copy link

⚠️ 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.73.9. 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.

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jul 14, 2024
Copy link

⚠️ 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.

@cortinico
Copy link
Contributor

android\app\src\main\java\com\fctechx\easycam\CameraControllerViewModel.java:7: error: cannot find symbol
import androidx.lifecycle.AndroidViewModel;

Your code is failing to compile here: CameraControllerViewModel.java:7
This is not a bug with React Native but a problem with your code.

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests

2 participants