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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to