0
이 프로젝트는 Github에서, Androidtv-Leanback에 구글 샘플 중 하나를 찾을 수 없습니다. 나는 그것을 복제하고 Android 스튜디오로 열었지만 빌드가 실패합니다.지원-v4.aar (com.android.support:support-v4:24.1.1)
오류 :
Could not find support-v4.aar(com.android.support:support-v4:24.1.1)
build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '24'
defaultConfig {
applicationId "com.example.android.tvleanback"
minSdkVersion 21
targetSdkVersion 24
versionCode 2
versionName "1.3"
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'])
compile 'com.android.support:support-v4:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:leanback-v17:24.1.1'
compile 'com.android.support:recommendation:24.1.1'
compile 'com.android.support:preference-leanback-v17:24.1.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'org.robolectric:robolectric:3.1'
androidTestCompile 'com.android.support:support-annotations:24.1.1'
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
compile 'com.google.android.exoplayer:exoplayer:r1.5.8'
// compile files('src/libs/android-support-v4.jar')
}
나는 그것을 할,하지만 지금 말하는'오류 : ': 응용 프로그램을'A 문제는 프로젝트를 구성 발생했습니다. > 지원 -v4.jar을 찾을 수 없습니다 (com.android.support:support-v4:24.1.1). 다음 위치에서 검색 : https : //로 jcenter.bintray.com/COM/안드로이드/지원/지원-V4/24.1.1/지원 - v4-24.1.1.jar' – helloliu
앱에서 종속성을 추가 \ build.gradle 파일. 이 http://stackoverflow.com/a/23241888/5545429 –
을 참조 나는에서에 많은 24.1.1to 24.2.1.And 덕분에 모든 SDK 버전을 변경하여 그것을 해결! – helloliu