You say "lib" in one place and "libs" in another. Make sure you pick one
name and use it everywhere.
On Tuesday, February 19, 2013 4:52:54 AM UTC-6, 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.