QuadFlask / react-native-naver-map

🗺️naver map for react-native
MIT License
163 stars 147 forks source link

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

Open puretension opened 8 months ago

puretension commented 8 months ago

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

> FoodDeliveryApp@0.0.1 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 commented 7 months ago

어떻게 해결하셨을까요?

Brayden-kwak commented 6 months ago

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

mym0404 commented 6 months ago

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

floydkim commented 5 months ago

https://github.com/pet-walk/react-native-naver-map/commit/196f97c178357173b147cae30bacf652a6b7c6d4 일단 이 커밋을 참고하셔서 패치하시면 크래시는 막을 수 있습니다.

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

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