지도 상자 탐색 패키지 compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.6.3'
을 gradle 파일에 추가하는 빈 프로젝트를 만듭니다. 다음과 같은 appcompat 파일의 오류를 보여줍니다. -지도 상자 탐색 패키지를 추가하면 gradle 빌드에서 오류가 표시됩니다.
Error:Failed to resolve: com.android.support:appcompat-v7:26.1.0
다른 버전의 Appcompat 파일을 사용하고 있습니다. 탐색 패키지를 추가하기 전에 모든 것이 잘되었습니다. 누가이 이상한 오류를 찾아 내게 도와 줄 수 있습니까? 지원 라이브러리 (26)는 저장소 섹션 Gradle을 도구 플러그인을 빌드 받는다는 섹션
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
이 포함되어 있는지 확인 버전
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.example.aadhilahmed.test7"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.6.3'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
나는 이것을 시도했다. 여전히 같은 오류를 보여주고있다. –
업데이트 대답을 확인하십시오 –
안녕하세요, 첫 번째 기술 자체를 사용하여 문제가 해결되었습니다. 그것이 작동하도록하기 위해해야만했던 또 다른 수정은 마지막에 appcompat v7 : 26.1.0을 추가하는 것이 었습니다. –