nmap 라이브러리 설치 후 build 실패
592
작성한 질문수 6
개발 환경 : 윈도우, 안드로이드
버전
rn : 0.66.5
node : 16
java : 11
에뮬 : Nexus 5 / SDK 30
gradle : 6.9
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zipgradle plugin : 4.2.2
classpath("com.android.tools.build:gradle:4.2.2")
진행 상황
npm i https://github.com/ZeroCho/react-native-naver-map
라이브러리 설치build.gradle(project)
maven {url 'https://naver.jfrog.io/artifactory/maven/'
}
추가AndroidManifest.xml
<meta-data
android:name="com.naver.maps.map.CLIENT_ID"
android:value="API 키" />
추가
현재 상황에서 오류 내용
.
.
.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1001 file(s) to forward-jetify. Using 6 workers...
info JS server already running.
info Installing the app...
> Configure project :app
Reading env from: .env
Build-tool 33.0.0 is missing DX at C:\Users\INJUNG\AppData\Local\Android\Sdk\build-tools\33.0.0\dx.bat
.
.
.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':react-native-nmap:compileDebugAidl'.
> Installed Build Tools revision 33.0.0 is corrupted. Remove and install again using the SDK Manager.
* 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 7s현재 프로젝트 SDK 버전이 강의 시점 버전인 30으로 되어있음
// build.gradle (project)
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "21.4.7075529"하지만 현재(24년07월) https://github.com/ZeroCho/react-native-naver-map 에서 받은 라이브러리의 SDK 버전이 33으로 확인됩니다. 혹시 이것 때문에 문제가 발생 할 수 있을까요?
// node_modules/react-native-nmap/android/build.gradle
apply plugin: 'com.android.library'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
android {
compileSdkVersion rootProject.ext.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
buildToolsVersion rootProject.ext.hasProperty('buildToolsVersion') ? rootProject.ext.buildToolsVersion : "33.0.0"
defaultConfig {
minSdkVersion rootProject.ext.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 16
targetSdkVersion rootProject.ext.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33시도해 본 것
Android studio SDK 33버전 재설치 - 같은 오류
android 폴더에서 ./gradlew clean - 같은 오류
root 폴더에서 cash 삭제 후 build - 같은 오류
QuadFlask/react-native-naver-map 현재 버전 설치 (npm install react-native-nmap --force)
apply plugin: 'com.android.library'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
android {
compileSdkVersion rootProject.ext.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 28
buildToolsVersion rootProject.ext.hasProperty('buildToolsVersion') ? rootProject.ext.buildToolsVersion : "28.0.3"
defaultConfig {
minSdkVersion rootProject.ext.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 16
targetSdkVersion rootProject.ext.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 28FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not resolve com.naver.maps:map-sdk:3.12.0.
Required by:
project :app > project :react-native-nmap
> Could not resolve com.naver.maps:map-sdk:3.12.0.
> Could not get resource 'https://naver.jfrog.io/artifactory/maven/com/naver/maps/map-sdk/3.12.0/map-sdk-3.12.0.pom'.
> Could not HEAD 'https://landing.jfrog.com/reactivate-server/naver'. Received status code 409 from server: Conflict
* 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 11s-jfrog 저장소에서 naver map 3.12.0을 찾지 못 하는 것 같습니다.
ZeroCho/react-native-naver-map는 특정 버전을 설치 할 수 없어서 강의 시점과 같은 환경으로 설치하지 못했습니다.
QuadFlask/react-native-naver-map도 0.0.66 버전 한 가지라서 버전을 바꾸어 시도해 보지 못 했습니다.
답변 1
0
RN 버전을 0.72나 0.73으로 설치하시는 게 어떨까 싶습니다.
굳이 0.66으로 하시려는 이유가 있으신가요?
아니면 build tool version을 30.0.2에서 33.0.0으로 올리셔도 됩니다.
0
잠깐!! 이 명령어를 입력하면 항상 최신 버전의 react를 받아오므로 강좌의 버전(0.66)과 일치하지 않게 됨. 현재 최신 버전은 0.72이라서 상당히 차이가 남. 강좌랑 동일한 버전으로 하지 않으면 많은 스트레스를 받을 수 있음.
최신 버전으로 시작하고 싶었지만 사용하려는 라이브러리 버전 호환 문제를 많이 겪기도 했고 위 문구 때문에 0.66으로 시작했습니다.
project SDK 버전을 올려서 해 보고 성공 여부 상관 없이 0.7X 버전으로 새로 만들어보아야겠습니다. 빠른 답변 감사합니다.
추가로 그동안 0.66 버전을 사용하다 보니 라이브러리 설치 때 마다 강의 레포 package.json에 명시된 버전 (npm i 라이브러리@xxx)으로 설치했는데 0.7X 버전에선 버전 명시 없이 최신 버전으로 설치해도 이상 없을까요?
앱실행시 네이버맵 [401] 에러
0
959
2
스타일링 라이브러리
0
147
2
expo, cli 선택 중에 고민이 있습니다.
0
167
2
JDK 버전이 달라도 괜찮나요?
0
223
2
dimenstion usewindowdeminstion
0
120
3
[맥 전용]환경 설정하기 1편 & [맥 전용]환경 설정하기 2편의 영상이 안나옵니다.
0
209
1
jdk11 버전과 gradle 버전의 호환성 관련 질문드립니다.
0
398
2
강의 외 질문입니다!
0
157
2
react native랑 맞는 ui 라이브러리 어떤게 좋을까요?
0
1487
2
react native와 spring boot 연결
0
353
1
java가 아닌 .kt에서 code push 에러가 발생합니다.
0
210
2
flipper 239 에러가 발생합니다.
0
163
2
package.json에 /lib/panino.js 문제입니다.
0
464
2
window - mac 협업 과정 질문합니다
0
214
1
ios 빌드 중 RCTBridgeDelegate.h import 오류
0
289
2
ios 앱 빌드 중 hermesEnabled 관련 오류발생
0
238
2
Socket 연결시 질문 드립니다.!
0
151
2
wifi 환경에서 axios 통신이 로컬서버에서 안됩니다.
0
425
2
iOS render error 질문드립니다.
0
410
2
iOS 가상머신 오류
0
164
2
npc react init 명령어 실행시 발생되는 오류
0
220
1
nom start 시 오류
0
116
1
NextJS 기반으로 만들어서 웹뷰 React Native로 배포 가능한가요?
0
996
2
안드로이드 rn75 버전에 맞게 설정 중에 android13 다운로드에 대해서 막혔습니다!
0
183
2





