마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드 스튜디오에서 라이브러리 버전 문제http://www.masterqna.com/android/ask

0 추천

<app gradle> 코드 ->    

이 코드에서 implementation group: project.KAKAO_SDK_GROUP, name: 'kakaonavi', version: project.KAKAO_SDK_VERSION를 넣으면
 implementation "com.android.support:appcompat-v7:$android_support_lib_version" 이 부분에 에러가 납니다.. 제발 도와주세요.......

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'org.jetbrains.dokka'

android {
    compileSdkVersion 26
    buildToolsVersion '28.0.3'
    defaultConfig {
        applicationId "com.example.application"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "0.0.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
        test.java.srcDirs += 'src/test/kotlin'
    }
}

dependencies {
    // Testing frameworks
    testImplementation 'junit:junit:4.12'

    // Include libraries in the libs directory
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation group: project.KAKAO_SDK_GROUP, name: 'kakaonavi', version: project.KAKAO_SDK_VERSION

    // Kotlin standard library
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    // Android support libraries
    implementation "com.android.support:appcompat-v7:$android_support_lib_version"
    implementation "com.android.support:design:$android_support_lib_version"
    implementation "com.android.support:cardview-v7:$android_support_lib_version"
    implementation "com.android.support:recyclerview-v7:$android_support_lib_version"

    // DateTime library - Java 8 APIs require minSdk >= 26
    implementation 'com.jakewharton.threetenabp:threetenabp:1.0.5'


    // Other libraries
    implementation 'de.hdodenhof:circleimageview:2.2.0'
}

dokka {
    outputFormat = 'html'
    outputDirectory = "$buildDir/docs"

    // Do not create index pages for empty packages
    skipEmptyPackages = true

    // Include private members
    includeNonPublic = true

    // Specifies the location of the project source code on the web (source links)
    linkMapping {
        // Source directory
        dir = "src/main/kotlin"

        // URL showing where the source code can be accessed through the web browser
        url = "https://github.com/FarbodSalamat-Zadeh/FamilyTreeApp/tree/master/app/src/main/kotlin"

        // Suffix which is used to append the line number to the URL (#L for GitHub)
        suffix = "#L"
    }

    externalDocumentationLink {
        // Root URL of the generated documentation to link with
        url = new URL("https://developer.android.com/reference/")
    }

    // Don't generate docs for other libraries
    packageOptions {
        prefix = "kotlin"
        suppress = true
    }
    packageOptions {
        prefix = "android"
        suppress = true
    }
    packageOptions {
        prefix = "com.jakewharton"
        suppress = true
    }
    packageOptions {
        prefix = "de.hdodenhof"
        suppress = true
    }
}
<project gradle> 코드
/*
 * Copyright 2018 Farbod Salamat-Zadeh
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        android_support_lib_version = '26.1.0'
        kotlin_version = '1.2.51'
        dokka_version = '0.9.16'
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        mavenCentral()
        maven { url 'http://devrepo.kakao.com:8088/nexus/content/groups/public/' }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
 
에러메세지 입니다.. 제발 도와주세요...
 

 
익명사용자 님이 2018년 11월 16일 질문

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...