This worked great for me for building library aar file that I wanted to be 
different than the directory.

Previously, I used project(":Utilities").name = 
'mobileUtilitiesLibraryAndroid' in the project settings.gradle file, but 
with the new Android Studio 0.4.6 this had issues it caused issues with the 
project setup.


On Monday, April 29, 2013 11:23:44 AM UTC-6, Xavier Ducrohet wrote:
>
> Looking at the code, I'm actually not sure how the name is being setup. 
> Puzzling.
>
> I would try to change one of the libraries base name by putting in its 
> build.gradle:
>
> archivesBaseName = 'something'
>
> That should help I think.
>
> Xav
>
>
> On Mon, Apr 29, 2013 at 9:56 AM, Szabolcs Berecz 
> <[email protected]<javascript:>
> > wrote:
>
>> Hi!
>>
>> I just tracked down an obscure bug on my side which was caused by two 
>> projects having the same directory name. This is how my directories look 
>> like:
>>
>> modules/
>>   someproject/
>>     library/
>>     sample/
>>   someotherproject/
>>     library/
>>     sample/
>> mainproject/
>>
>> the "library" projects are android-library projects and the "mainproject" 
>> is an android project. The problem is that mainproject does not compile as 
>> it can't find classes from someproject/library.
>>
>> The cause is the following: mainproject/build/exploded-bundles directory 
>> contains only one directory named "library-1.0.aar" containing one 
>> classes.jar file with the classes from the second library project. 
>> Obviously, the classes.jar from the first library is overwritten by the jar 
>> from the second one.
>>
>> I can open a new issue if you want. But in the meantime, is there any way 
>> to rename a project without renaming the containing directory? Or maybe 
>> change the name of the output aar file?
>>
>> Thanks,
>> Szabolcs
>>
>> -- 
>> 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.

Reply via email to