어떻게 해야해야 할지 모르겠습니다..
전체 코드는 이렇습니다..
저는 미니멈 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')
}
}