gradle - Add external library into android studio 0.5.1 project -


i'm using external library svprogresshud in android studio project module. fine until upgraded android studio 0.5.1. shows follow error message:

error:(7, 17) package org.lcsky not exist

here settings.gradle:

include ':app',':svprogresshud' 

my build.gradle in project folder:

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.9.+'     } }  allprojects {     repositories {         mavencentral()     } } 

my build.gradle in svprogresshud module:

apply plugin: 'android'

android {     compilesdkversion 19     buildtoolsversion "19.0.0"      defaultconfig {         minsdkversion 8         targetsdkversion 19         versioncode 1         versionname "1.0"     }     buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     } }  dependencies {     compile 'com.android.support:appcompat-v7:+' } 

the build.gradle in main module:

apply plugin: 'android'  android {     compilesdkversion 19     buildtoolsversion '19.0.0'      defaultconfig {         minsdkversion 8         targetsdkversion 19         versioncode 1         versionname "1.0"     }     buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     } }  dependencies {     compile 'com.android.support:appcompat-v7:+'     compile filetree(dir: 'libs', include: ['*.jar'])     compile project(':svprogresshud') } 

the gradle-wrapper.properties

distributionbase=gradle_user_home distributionpath=wrapper/dists zipstorebase=gradle_user_home zipstorepath=wrapper/dists distributionurl=http\://services.gradle.org/distributions/gradle-1.10-all.zip 

can tell me wrong? thanks

i solved problem changing build.gradle in svprogresshud module:

apply plugin: 'android-library' 

previously works (before android 0.5.1) when set to:

apply plugin: 'android' 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -