• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

naver 지도 추가 이후 에러

23.04.13 21:11 작성 조회수 1.57k

1

네이버 맵 연동 강의 이후

npm i react-native-nmap --force

com.fooddeliveryapp 사이에 폴더 추가

com.tjdwo.fooddeliveryapp

package 이름 전부 수정

 

PS C:\Users\ksj\FoodDeliveryApp> npm run android

> FoodDeliveryApp@0.0.1 android

> react-native run-android

info JS server already running.

info Installing the app...

> Configure project :app

Reading env from: .env

> Configure project :react-native-flipper

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gr

adle.properties` file or use the new publishing DSL.

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

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

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

5 actionable tasks: 5 up-to-date

Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true

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.naver.maps:map-sdk:3.16.2.

Required by:

project :app

* 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 10s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.

BUILD FAILED in 10s

at makeError (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)

at C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

at async runOnAllDevices (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:82:7)

at async Command.handleAction (C:\Users\ksj\FoodDeliveryApp\node_modules\@react-native-community\cli\build\index.js:108:9)

info Run CLI with --verbose flag for more details.

PS C:\Users\ksj\FoodDeliveryApp>

 

구글에 찾아보고 몇시간째 삽질 중입니다 ㅠ.ㅠ

최신 naver map 에 gradle 버전이나 추가해야하는 곳이 더 있을까요?

"name": "react-native",
"version": "0.71.6",

답변 1

답변을 작성해보세요.

2

김성재님의 프로필

김성재

질문자

2023.04.14

maven {
    url 'https://naver.jfrog.io/artifactory/maven/'
}

부분을 추가 했는데 제가 실수를 했네요 ㅠ

다시 확인해 보니 build.gradle 에서

allprojects 부분이 아닌 buildscript 안에 repositories 에 추가를 했네요 ㅠ

감사합니다~