Closed omerkars78 closed 7 months ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.72.10. 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. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Can you confirm your ANDROID SDK location ? In the terminal
echo $ANDROID_HOME
should list the director. On a mac, something like /Users/[yourUsername]/Library/Android/sdk
Can you confirm your ANDROID SDK location ? In the terminal
echo $ANDROID_HOME
should list the director. On a mac, something like/Users/[yourUsername]/Library/Android/sdk
export JAVA_HOME="/opt/homebrew/Cellar/openjdk@17/17.0.9/libexec/openjdk.jdk/Contents/Home"
export ANDROID_HOME=~/Library/Android/sdk
export PATH="$JAVA_HOME/bin:$PATH" export PATH="$ANDROID_HOME/emulator:$PATH" export PATH="$ANDROID_HOME/tools:$PATH" export PATH="$ANDROID_HOME/tools/bin:$PATH" export PATH="$ANDROID_HOME/platform-tools:$PATH" export PATH="/opt/homebrew/bin:$PATH"
alias sail='bash vendor/bin/sail'
My android/build.gradle =
This file is wrongly upgrade. That's how it should look like in a 0.72 project: https://github.com/facebook/react-native/blob/08fd9170fcdc7042fdcfe5f54eec71ed245d9795/packages/react-native/template/android/build.gradle#L17-L20
My android/build.gradle =
This file is wrongly upgrade. That's how it should look like in a 0.72 project:
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
now its looking like this but i have got a this bug again =
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
> Could not find com.facebook.react:react-android:0.72.8.
Required by:
project :app
> Could not find com.facebook.react:hermes-android:0.72.8.
Required by:
project :app
> Could not find com.facebook.react:react-android:0.72.8.
Required by:
project :app > project :react-native-community_geolocation
project :app > project :react-native-community_slider
project :app > project :react-native-firebase_analytics
project :app > project :react-native-firebase_app
project :app > project :react-native-firebase_crashlytics
project :app > project :react-native-firebase_messaging
project :app > project :react-native-picker_picker
is there any update for this issue, I have met this question, why someone closed it?
Description
I can build on ios platform succesfully. But i need to try build in android but i cant always i got the thesee errors. How can i resolve theese bugs? What went wrong:
Steps to reproduce
Java version = OpenJDK Runtime Environment Homebrew (build 17.0.9+0) OpenJDK 64-Bit Server VM Homebrew (build 17.0.9+0, mixed mode, sharing)
Node js. version = v20.9.0
My android/build.gradle =
My android/app/build.gralde =
My package.json =
React Native Version
0.72.8
Affected Platforms
Runtime - Android, Build - MacOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/omerkars78
Screenshots and Videos
No response