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

Error:(2, 0) Plugin with id 'android-maven' not found. 라는 에러가 뜹니다..

0 추천

어떻게 해야해야 할지 모르겠습니다..

전체 코드는 이렇습니다..

저는 미니멈 18 타겟 23이 기본 설정이고, 19로 바꿔도 소용이 없었습니다.

안드스튜디오 버전 2.3.2입니다. 

apply plugin: 'com.android.library'
apply plugin: 'android-maven'

version = "1.0.0"
group = "com.handstudio.android"
archivesBaseName = "hzgrapherlib"


dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}

android {
    compileSdkVersion 20
    buildToolsVersion "19.1.0"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 18
        versionCode 2
        versionName "1.0.0"
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}
pureni (120 포인트) 님이 2017년 5월 30일 질문

1개의 답변

0 추천
안드로이드 스튜디오의 프로젝트 스트럭쳐를 눌러보시면 상단에 플러스버튼이 있습니다.

해당 jar / aar 파일을 불러오신후 앱 디펜던시에 추가하시면 됩니다.

http://dwfox.tistory.com/31
익명사용자 님이 2017년 5월 31일 답변
...