Re: Could not find property 'outputFile' on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@2b936b04.

2014-12-02 Thread 杨辉
That is it, Thank you. 在 2014年12月1日星期一UTC+8下午3时39分13秒,kin ptm写道: > > outputs[0].outputFile > > 在 2014年11月30日星期日UTC+8上午1时16分01秒,杨辉写道: >> >> Here is my build.gradle: >> https://github.com/SnowdreamFramework/android-gradle-template/blob/master/config/android.gradle >> >> When i try to upgrade my pro

Re: How to exclude libs provided inside of aar dependency?

2014-12-02 Thread William Ferguson
Bit if they are internal implementation of the AAR then why not include them in classes.jar? ᐧ On Wed, Dec 3, 2014 at 10:21 AM, Xavier Ducrohet wrote: > By "should not have done this", I meant "should not have included > support-v4 in its libs folder". > > Including your own jar files in libs/ i

Re: How to exclude libs provided inside of aar dependency?

2014-12-02 Thread Xavier Ducrohet
By "should not have done this", I meant "should not have included support-v4 in its libs folder". Including your own jar files in libs/ is fine, but it should be considered internal implementation that's hidden from the developer. It should never be an existing published artifact. On Tue, Dec 2,

Re: How to exclude libs provided inside of aar dependency?

2014-12-02 Thread William Ferguson
Xavier I 100% agree. Can we expect the same behaviour from the AARs that ship as part of the Android SDK? William On Wednesday, December 3, 2014 5:22:53 AM UTC+10, Xavier Ducrohet wrote: > > It's not possible at the moment to ignore a dependency that's in the libs/ > folder of an aar. > > The p

Re: androidTestCompile and dependency on another module: ClassNotFoundException

2014-12-02 Thread Tomek Rozbicki
Already solved this. It was problem with include in settings.gradle. More here: https://stackoverflow.com/questions/27180210/androidtestcompile-and-dependency-on-another-module-ends-with-classnotfoundexcep Thanks Xavier for response On Tuesday, 2 December 2014 20:18:06 UTC+1, Xavier Ducrohet

Re: SDK Google APIs and x86 images

2014-12-02 Thread Jürgen Cruz
I see. Is this new approach going to be retrofitted to the previous API levels? at least from level 7 or 10 or 14 and above? Since, for 18 and below we have x86 images as well as Google APIs images, but not images with both, which slows development by forcing you to choose between the speed of

Re: [android-gradle] GenerateResources task's properties and usage

2014-12-02 Thread Xavier Ducrohet
We have several generated res folder by different tasks. It's better to not have different task dump files in the same res folder in case one overwrite a file created by another task (this will trigger an error in the res merger instead of silently overwriting the res file with non-deterministic be

Re: SDK Google APIs and x86 images

2014-12-02 Thread Xavier Ducrohet
What you're seeing is a display bug in the SDK Manager. Note that we very recently) changed how the add-ons package their system image. It used to be that the addon came with the system image (on top of some additional APIs). Now the "Google APIs" package that you see only contains the APIs, and t

Re: Problem running build with 1.0.0-rc1

2014-12-02 Thread 'Jerome Dochez' via adt-dev
Looking at the code, I suppose something is related to placeholders defined in your build.gradle. would you mind sharing your build.gradle. thx, jerome On Mon Dec 01 2014 at 7:26:29 AM Vyacheslav Blinov < blinov.vyaches...@gmail.com> wrote: > Hi. I'm running android plugin version 1.0.0-rc1 on t

Re: [Gradle] Generate file in /build/generated/ folder

2014-12-02 Thread Xavier Ducrohet
You should use: "/build/generated/res/something/${variant.dirName}/xml/" dirName will ensure that the folder (and subfolders) is unique. There is nothing to handle "something" though, so make sure you put something unique. Our scheme is res//variant.dirName/ where depend on what the folder is

Re: Multiple signingConfigs based on flavor and buildType

2014-12-02 Thread Xavier Ducrohet
Dont set a signingconfig on the release build-type, it'll override the signing config set in the flavor (this is how the debug signing config works). If you really have a lot of B* flavors, I would try to do something like this after you create the flavors/signingconfigs: for (int i = 0 ; i < n ;

Re: Problem running build with 1.0.0-rc1

2014-12-02 Thread Xavier Ducrohet
Looks like a bug. Thanks for reporting it. https://code.google.com/p/android/issues/detail?id=81496 On Mon, Dec 1, 2014 at 7:26 AM, Vyacheslav Blinov < blinov.vyaches...@gmail.com> wrote: > Hi. I'm running android plugin version 1.0.0-rc1 on top of Gradle 2.2.0, > and having the following stackt

Re: How to exclude libs provided inside of aar dependency?

2014-12-02 Thread Xavier Ducrohet
It's not possible at the moment to ignore a dependency that's in the libs/ folder of an aar. The publisher of that library should not have done this. I'd contact them and ask them to publish it properly. If it's open source, you can do it yourself if needed. On Mon, Dec 1, 2014 at 7:24 AM, Vyache

Re: androidTestCompile and dependency on another module: ClassNotFoundException

2014-12-02 Thread Xavier Ducrohet
This should work, though if you are adding it to 'compile' then you don't need to add it to 'androidTestCompile' too? On Thu, Nov 27, 2014 at 3:22 PM, Tomek Rozbicki wrote: > I'm trying to test some code that part of it comes from another module. > All the test pass except these which are refere

Re: Gradle package jars from maven repo into AAR bundle libs folder

2014-12-02 Thread Xavier Ducrohet
https://code.google.com/p/android/issues/detail?id=76415 On Wed, Nov 26, 2014 at 8:02 PM, jdONeill gMail wrote: > Thanks Xavier for confirming, do you have an issue yet? Or should I > create one? > > > On 11/24/14, 12:42 PM, Xavier Ducrohet wrote: > > This is not supported at the moment, but w

Re: Could not find property 'outputFile' on com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated@2b936b04.

2014-12-02 Thread kin ptm
outputs[0].outputFile 在 2014年11月30日星期日UTC+8上午1时16分01秒,杨辉写道: > > Here is my build.gradle: > https://github.com/SnowdreamFramework/android-gradle-template/blob/master/config/android.gradle > > When i try to upgrade my project to use gradle 2.2.1 and classpath > 'com.android.tools.build:gradle:1.0

[android-gradle] GenerateResources task's properties and usage

2014-12-02 Thread Pierre Degand
With android-gradle, I can get the processResources task's associated directory using the Output API with : android.applicationVariants.all { variant -> variant.outputs.each { output -> def resDir = output.processResources.resDir; // for flavorARelease variant, this resDir is : //

android studio doesn't highlight line in debugger when hit by debugger

2014-12-02 Thread Maximus Koretskyi
I'm using Android Studio 0.8.14. When debugging, in a callstack I can see that some lines are highlighted in yellow (marked on the pic with red box) and some are not: If I click on those lines that highlighted then a corresponding file is brought up in editor

Re: SDK Google APIs and x86 images

2014-12-02 Thread Štefan Miklošovič
Hi Jurgen I have to admit that it is complete mess. I am not core Android dev, just ordinary user of Android SDK and I do not know what is where. They have changed the layout on that directory structure of system-images, is was regularly broken some time ago, I submitted bug to upstream and it

[Gradle] Generate file in /build/generated/ folder

2014-12-02 Thread Pierre Degand
Hi, I would like to generate some files at build time (an XML file and then add a reference to this XML into the Manifest of my app). I suppose the /build/generated/ folder is the place to put this kind of generated files. After studying how this folder works, with the `wearApp(':wear')` dep

Multiple signingConfigs based on flavor and buildType

2014-12-02 Thread Aditya Gore
I have an app that has several flavors: A, B, B1..Bn The release buildType for Flavor A needs to be signed using one signingConfig and the release buildType for all "B" flavors need a second signingConfig. However I want all debug buildTypes to be unsigned or signed with the default debug key.

Re: Setting the Android SDK is not persisting in the latest Android Studio

2014-12-02 Thread Carlos TB
I had the same issue. I run Android Studio as Administrator and it all got solved. -- 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 adt-dev+unsubscr...@googlegroups.c

Re: Multidex BuildConfig.class

2014-12-02 Thread Xavier Ducrohet
Yes, I see what the problem is. We need to release a new version of the library :\ On Tue, Dec 2, 2014 at 9:10 AM, iñaki wrote: > Hi, recently we reached 65k limit. > With the new properties(multidexEnabled) it's solved perfectly. > Our problem now is testing, we are using additional steps defi

Multidex BuildConfig.class

2014-12-02 Thread iñaki
Hi, recently we reached 65k limit. With the new properties(multidexEnabled) it's solved perfectly. Our problem now is testing, we are using additional steps defined: https://developer.android.com/tools/building/multidex.html#testing But returns: Execution failed for task ':app:packageAllDebugTestC

Re: Android Studio Debugger doesn't work on private libraries

2014-12-02 Thread VegeChou
I had found the same problme in Android Stuido 1.0 RC 2, how can I solve this? Kevin Smith me.com> writes: > > This has been fixed for quite a while and I haven’t had any problems since. > Kevin > On Nov 14, 2014, at 1:44 PM, Nathaniel Waggoner gmail.com> wrote: > -- You received this mess