mym0404/react-native-naver-map

[BUG]: Android 실행 이슈

Closed this issue · 2 comments

Is there an existing issue for this?

  • I have searched the existing issues

Version of @mj-studio/react-native-naver-map

1.0.11

Version of react-native

0.73.4

What os are you seeing the problem on?

Android

What device types are you seeing the problem on?

Simulator

What architecture types of react native are you seeing the problem on?

New Architecture(Fabric)

Version of device(android API, iOS OS version, etc...)

Android 34

What happened?

ReadMe 설명대로 설치하였고 AndroieManifest, build.gradle 설정 완료 했으나 아래 에러가 발생합니다.

image

Relevant a package.json.

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

안녕하세요, 네이버 맵 SDK를 Maven Repository가 제대로 설정되지 않아 못 불러오는 현상으로 보입니다. build.gradle이 링크와 같이 설정된 것 맞을까요?

allprojects {
    repositories {
        maven {
            url "https://repository.map.naver.com/archive/maven"
        }
    }
}

다음 동영상은 동일하게 위 이슈를 냈다가 android/build.gradle에 구문을 추가하자 정상적으로 빌드가 되는 영상입니다.

1.mp4

안녕하세요

이제 보니까 buildscript 내에 maven url만 추가해서 발생한 문제였네요... 멍청한 실수를 해버렸네요
문제해결에 도움주셔서 감사합니다ㅠ

문제코드

buildscript {
    ext {
        buildToolsVersion = "34.0.0"
        minSdkVersion = 21
        compileSdkVersion = 34
        targetSdkVersion = 34
        ndkVersion = "25.1.8937393"
        kotlinVersion = "1.8.0"
    }
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://repository.map.naver.com/archive/maven"
        }
    }
    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
        classpath("com.google.gms:google-services:4.4.1")
    }
}

apply plugin: "com.facebook.react.rootproject"

�이슈해결

buildscript {
    ext {
        buildToolsVersion = "34.0.0"
        minSdkVersion = 21
        compileSdkVersion = 34
        targetSdkVersion = 34
        ndkVersion = "25.1.8937393"
        kotlinVersion = "1.8.0"
    }
    repositories {
        google()
        mavenCentral()        
    }
    dependencies {
        classpath("com.android.tools.build:gradle")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
        classpath("com.google.gms:google-services:4.4.1")
    }
}

allprojects {
    repositories {
        maven {
            url "https://repository.map.naver.com/archive/maven"
        }
    }
}

apply plugin: "com.facebook.react.rootproject"