android - Gradle cannot find target sdk -
i need write small library submodules. when try sync project error.
if use gradle gradle:1.0.1
error:configuration name 'default' not found.
if build:gradle:1.2.3
error:cause: failed find target 21
but sdk installed. here build.gradle
uildscript { repositories { mavencentral() } dependencies { classpath 'com.android.tools.build:gradle:1.2.3' } } apply plugin: 'com.android.library' android { compilesdkversion 21 buildtoolsversion "21.1.2" defaultconfig { minsdkversion 9 targetsdkversion 21 versioncode 1 versionname "1.0" } compileoptions { sourcecompatibility javaversion.version_1_7 targetcompatibility javaversion.version_1_7 } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile project(':libs:universalimageloader') } project(':libs:universalimageloader') { apply plugin: 'com.android.library' android.compilesdkversion = 21 android.buildtoolsversion = "21.1.2" android.sourcesets.main { manifest.srcfile 'library/androidmanifest.xml' java.srcdirs = ['library/src'] res.srcdirs = ['library/res'] } }
any ideas on subject? thx help.
Comments
Post a Comment