728x90
반응형
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception.
* 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.68.5.
Required by:
project :app
project :app > project :react-native-firebase_app
project :app > project :react-native-firebase_dynamic-links
project :app > project :react-native-firebase_messaging
* Try: > Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org BUILD FAILED in 16s
* 위와 같은 에러가 발생하여 stacktrace 를 이용하여 자세하게 살펴보았다.
cd android
./gradlew assembleDebug --stacktrace
위 에러는 원인이 다양해서 사람들마다 해결 방법이 달랐고, 나의 경우는 android > app > build.gradle 파일에 아래 라인을 주석처리 하여 해결하였다.
...
dependencies {
// implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
...
728x90
반응형