My point is that I don't see any speed improvement when I target SDK 21. I 
think AS detect my device as API 21 and bypass the multidex phase. I just 
want to confirm with the tool team that this is indeed the case. :)



On Friday, May 6, 2016 at 1:38:09 PM UTC-4, Gonçalo Silva wrote:
>
> There's a better way. You can get faster compile times while keeping AS's 
> lint checks for your real minimum SDK.
>
> Define your minSdk as a function in your project's build.gradle and then 
> use it when compiling: 
> https://gist.github.com/goncalossilva/a68cc0cc46b9ae015bc1b956bfa8d9ab
>
> Hope this helps!
>
> On Fri, May 6, 2016 at 6:29 PM thierryd <thie...@gmail.com <javascript:>> 
> wrote:
>
>> Hi,
>> In his recent article/video (
>> https://medium.com/google-developers/instant-run-how-does-it-work-294a1633367f#.n0d4idmri),
>>  
>> Reto says that creating a flavor that targets API 21 can make the build 
>> faster.
>>
>> I thought that the recent improvement in Android Studio already made this 
>> unnecessary. I thought that when AS ask the user to select the device to 
>> deploy on, if the device is API 21 or greater, the multidex phase is not 
>> executed. 
>>
>> I have a large app targeting API 17. When I run it on API 21, the instant 
>> run build/deploy cycle is 13s. It's the same if I use a flavor that targets 
>> API 21.
>>
>>
>>
>>
>> -- 
>> 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+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to