You already have 

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

you have to put all *.jar file inside the libs directory. If any *.jar file 
outside of the libs folder wouldn't be compiled.

On Tuesday, February 19, 2013 5:52:54 AM UTC-5, Daniel Rindt wrote:
>
> Hello,
>
> my android lib makes use of some other libs which reside in /libs as usual 
> in android projects. My gradle file looks like this:
>
> buildscript {
>     repositories {
>         mavenCentral()
>     }
>     dependencies {
>         classpath 'com.android.tools.build:gradle:0.2'
>     }
> }
> apply plugin: 'android-library'
> dependencies {
>     compile fileTree(dir: 'libs', include: '*.jar')
> }
> android {
>     allprojects {
>        sourceCompatibility = 1.6
>        targetCompatibility = 1.6
>     }
>     defaultConfig {
>         minSdkVersion = 8
>
>         signingStoreLocation = "$androidSigningStoreLocation"
>         signingStorePassword = "$androidSigningStorePassword"
>         signingKeyAlias = "$androidSigningKeyAlias"
>         signingKeyPassword = "$androidSigningKeyPassword"
>     }
>     target = 'android-17'
>     sourceSets {
>         main {
>             manifest {
>                 srcFile "AndroidManifest.xml"
>             }
>             java {
>                 srcDir "src"
>                 exclude "test/**"
>             }
>             res {
>                 srcDir "res"
>             }
>         }
>     }
> }
>
> The build says "successful" when i deploy the apk the first run raises 
> java.lang.NoClassDefFoundError: com.omniture.AppMeasurement. Thats one 
> class in the mentioned jar files in the lib folder.
>
> Thanks for all help and suggestions
> Daniel
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to