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

React Native Version: 0.73.2에서 실행불가합니다ㅠ #191

Open
puretension opened this issue Jan 30, 2024 · 4 comments
Open

React Native Version: 0.73.2에서 실행불가합니다ㅠ #191

puretension opened this issue Jan 30, 2024 · 4 comments

Comments

@puretension
Copy link

puretension commented Jan 30, 2024

Version of react-native-naver-map libraries? 🙋🏻‍♂️

NMapsMap 3.17.0

Version of react-native? 🙋🏻‍♂️

react native 0.73.2

Version of node? 🙋🏻‍♂️

node 20.10.0

Platforms you faced the error (IOS or Android or both?) 🙋🏻‍♂️

Both

Expected behavior & Actual behavior 🙋🏻‍♂️

네이버 맵이 정상적으로 띄워지길 원합니다ㅠㅠ

Tested environment (Emulator? Real Device?) 🙋🏻‍♂️

iOS Main Error Message

Component 'RCTView' re-registered direct event 'topClick' as a bubbling event

iPhone SE(3rd generation)

Screenshot? 🙋🏻‍♂️

iOS Simulator Error

Simulator Screenshot - iPhone SE (3rd generation) - 2024-01-30 at 15 24 27
Simulator Screenshot - iPhone SE (3rd generation) - 2024-01-30 at 15 27 33

Android Main Error Message 🙋🏻‍♂️

Task :react-native-screens:compileDebugKotlin FAILED

Android Error Log 🙋🏻‍♂️

> Configure project :app
Reading env from: .env

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD SUCCESSFUL in 7s
12 actionable tasks: 7 executed, 5 up-to-date

> [email protected] android
> react-native run-android

info A dev server is already running for this project on port 8081.
info Installing the app...

> Configure project :app
Reading env from: .env
WARNING: The specified Android SDK Build Tools version (33.0.0) is ignored, as it is below the minimum supported version (33.0.1) for Android Gradle Plugin 8.1.1.
Android SDK Build Tools 33.0.1 will be used.
To suppress this warning, remove "buildToolsVersion '33.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Task :react-native-config:processDebugManifest
package="com.lugg.RNCConfig" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-config/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.lugg.RNCConfig" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-config/android/src/main/AndroidManifest.xml.

> Task :react-native-async-storage_async-storage:processDebugManifest
package="com.reactnativecommunity.asyncstorage" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.reactnativecommunity.asyncstorage" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/@react-native-async-storage/async-storage/android/src/main/AndroidManifest.xml.

> Task :react-native-encrypted-storage:processDebugManifest
package="com.emeraldsanto.encryptedstorage" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-encrypted-storage/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.emeraldsanto.encryptedstorage" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-encrypted-storage/android/src/main/AndroidManifest.xml.

> Task :react-native-nmap:processDebugManifest
package="com.github.quadflask.react.navermap" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-nmap/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.github.quadflask.react.navermap" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-nmap/android/src/main/AndroidManifest.xml.

> Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.th3rdwave.safeareacontext" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/AndroidManifest.xml.

> Task :react-native-screens:processDebugManifest
package="com.swmansion.rnscreens" found in source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-screens/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.swmansion.rnscreens" from the source AndroidManifest.xml: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-screens/android/src/main/AndroidManifest.xml.

> Task :react-native-async-storage_async-storage:compileDebugJavaWithJavac

> Task :react-native-nmap:compileDebugJavaWithJavac

> Task :react-native-safe-area-context:compileDebugKotlin
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt:7:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextModule.kt:9:2 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:6:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:26:51 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:28:11 'constructor ReactModuleInfo(String!, String!, Boolean, Boolean, Boolean, Boolean, Boolean)' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaContextPackage.kt:34:27 'hasConstants: Boolean' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaProviderManager.kt:4:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaProviderManager.kt:11:2 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt:59:23 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewManager.kt:4:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaViewManager.kt:14:2 'ReactModule' is deprecated. Deprecated in Java

> Task :react-native-screens:compileDebugKotlin FAILED

> Task :react-native-safe-area-context:compileDebugJavaWithJavac

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
130 actionable tasks: 125 executed, 5 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: file:///Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt:391:46 Unresolved reference: attr
Note: /Users/idohyeong/Desktop/FoodDeliveryApp/node_modules/react-native-safe-area-context/android/src/paper/java/com/th3rdwave/safeareacontext/NativeSafeAreaContextSpec.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-screens:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers-verbose flag for more details.
@soosooh
Copy link

soosooh commented Feb 20, 2024

어떻게 해결하셨을까요?

@Brayden-kwak
Copy link

아... 그냥 구글맵쓸걸그랬나ㅜㅜ
저도 앱 터지네요

@mym0404
Copy link

mym0404 commented Apr 5, 2024

안녕하세요, Fabric에서 지원되는 새로운 라이브러리가 개발되어 이전 가능합니다

@floydkim
Copy link

moojidog@196f97c
일단 이 커밋을 참고하셔서 패치하시면 크래시는 막을 수 있습니다.

다만 지도 내 오버레이 및 마커의 클릭 이벤트 핸들링에 문제가 생길 수 있어 보이는데,
일단 테스트해보니 저는 Marker 컴포넌트의 onClick prop에 전달한 JS 함수가 실행되는 것에는 문제가 없었습니다.

여건이 되신다면 위에 @mym0404 님께서 제작해주신 라이브러리로 교체하는 것이 더 좋을 듯 합니다.

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

No branches or pull requests

5 participants