Did this issue ever get fixed or is there some work around it? I have the exact same problem as Cyril.
Regards Lauszus On Friday, May 31, 2013 8:54:14 PM UTC+2, Xavier Ducrohet wrote: > > yea that's what I was thinking. I need to check how we generate the > artifact that gets exported by the library project. It looks like it > doesn't actually use the true artifact file name. > > > On Fri, May 31, 2013 at 10:34 AM, Cyril Mottier > <[email protected]<javascript:> > > wrote: > >> Sorry I made a mistake in my previous post. The >> file >> libraries/action-bar-sherlock-4.3.1/actionbarsherlock/build/libs/actionbarsherlock.aar >> >> doesn't exist. The existing >> file >> libraries/action-bar-sherlock-4.3.1/actionbarsherlock/build/libs/actionbarsherlock-4.3.1.aar. >> >> I guess the "-4.3.1" part is added because ActionBarSherlock has a >> version in its "allprojects" block : >> >> allprojects { >> group = 'com.actionbarsherlock' >> version = '4.3.1' >> >> repositories { >> mavenCentral() >> } >> } >> >> When getting rid of the version, the project compiles perfectly. >> >> On Friday, May 31, 2013 7:16:20 PM UTC+2, Jonathan Steele wrote: >>> >>> on multiproject example has apply plugin: 'android-reporting' in >>> root/build.gradle >>> >>> On Friday, May 31, 2013 3:31:56 AM UTC-4, Cyril Mottier wrote: >>>> >>>> Thank you Xavier. Here is my setup (I've just switched to 0.4.2 but it >>>> doesn't fix my issue) : >>>> >>>> *settings.gradle* >>>> >>>> include ':app' >>>> include ':libraries:action-bar-sherlock-4.3.1:actionbarsherlock' >>>> >>>> *build.gradle* >>>> >>>> buildscript { >>>> repositories { >>>> mavenCentral() >>>> } >>>> >>>> dependencies { >>>> classpath 'com.android.tools.build:gradle:0.4.2' >>>> } >>>> } >>>> >>>> *app/build.gradle* >>>> >>>> apply plugin: 'android' >>>> >>>> dependencies { >>>> compile project(':libraries:action-bar-sherlock-4.3.1: >>>> actionbarsherlock') >>>> compile 'com.google.android.gms:play-services:3.1.36' >>>> } >>>> >>>> android { >>>> compileSdkVersion 17 >>>> buildToolsVersion '17' >>>> >>>> defaultConfig { >>>> versionCode 6 >>>> versionName '1.2.3' >>>> minSdkVersion 8 >>>> targetSdkVersion 17 >>>> } >>>> } >>>> >>>> *libraries/action-bar-sherlock-4.3.1/actionbarsherlock/build.gradle* >>>> >>>> apply plugin: 'android-library' >>>> >>>> dependencies { >>>> compile 'com.android.support:support-v4:13.0.0' >>>> } >>>> >>>> android { >>>> compileSdkVersion 14 >>>> buildToolsVersion '17' >>>> >>>> sourceSets { >>>> main { >>>> manifest.srcFile 'AndroidManifest.xml' >>>> java.srcDirs = ['src'] >>>> res.srcDirs = ['res'] >>>> } >>>> } >>>> } >>>> >>>> I've looked at the build/ directory and I do have an .aar built in >>>> libraries/action-bar-sherlock-4.3.1/actionbarsherlock/libs/ >>>> actionbarsherlock-4.3.1.aar >>>> >>>> I still end up with >>>> >>>> :libraries:action-bar-sherlock-4.3.1:actionbarsherlock:bundleRelease >>>> UP-TO-DATE >>>> :app:prepareAVelovGradleLibrariesActionBarSherlock431ActionbarsherlockUnspecifiedLibrary >>>> >>>> FAILED >>>> >>>> FAILURE: Build failed with an exception. >>>> >>>> * What went wrong: >>>> A problem was found with the configuration of task ':app: >>>> prepareAVelovGradleLibrariesActionBarSherlock431Actionbarshe >>>> rlockUnspecifiedLibrary'. >>>> > File '/Users/cyrilmottier/Documents/Perso/AVelovGradle/ >>>> libraries/action-bar-sherlock-4.3.1/actionbarsherlock/build/libs/actionbarsherlock.aar' >>>> >>>> specified for property 'bundle' does not exist. >>>> >>>> * Try: >>>> Run with --stacktrace option to get the stack trace. Run with --info or >>>> --debug option to get more log output. >>>> >>>> >>>> On Wednesday, May 29, 2013 6:28:54 AM UTC+2, Xavier Ducrohet wrote: >>>>> >>>>> Can you show us the list of tasks that are running just prior to this >>>>> happening? >>>>> >>>>> The workflow here when building the "app" module is to make sure the >>>>> dependencies are built first. Then the dependency processing creates a >>>>> prepare tasks for each library that will ensure that the aar file is >>>>> extracted into the app's build folder so that we can use the content. >>>>> >>>>> Here it looks like somehow the prepare task is called but the >>>>> library's output wasn't created at all. can you check if that file >>>>> actually >>>>> exists? >>>>> >>>>> >>>>> On Mon, May 27, 2013 at 2:01 PM, Cyril Mottier <[email protected]>wrote: >>>>> >>>>>> I currently have the following issue on a project using Google Play >>>>>> Services and ActionBarSherlock (in a multi-project fashion). I've looked >>>>>> into the detail and can't understand what is actually happening. Do we >>>>>> have >>>>>> to add something for the build system to use .aar or is it done >>>>>> automatically? >>>>>> >>>>>> Thank you >>>>>> >>>>>> FAILURE: Build failed with an exception. >>>>>> >>>>>> * What went wrong: >>>>>> A problem was found with the configuration of task ':app: >>>>>> prepareAVelovGradleLibrariesActionBarSherlock431Actionbarshe >>>>>> rlockUnspecifiedLibrary'. >>>>>> > File '/Users/cyrilmottier/Documents/Perso/AVelovGradle/ >>>>>> libraries/action-bar-sherlock-4.3.1/actionbarsherlock/build/libs/actionbarsherlock.aar' >>>>>> >>>>>> specified for property 'bundle' does not exist. >>>>>> >>>>>> * Try: >>>>>> Run with --stacktrace option to get the stack trace. Run with --info >>>>>> or --debug option to get more log output. >>>>>> >>>>>> BUILD FAILED >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "adt-dev" 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. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Xavier Ducrohet >>>>> Android SDK Tech Lead >>>>> Google Inc. >>>>> http://developer.android.com | http://tools.android.com >>>>> >>>>> Please do not send me questions directly. Thanks! >>>>> >>>> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > http://developer.android.com | http://tools.android.com > > Please do not send me questions directly. Thanks! > -- You received this message because you are subscribed to the Google Groups "adt-dev" 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.
