Thanks Xavier for the feedback. Looking forward for it, as my build really slowed down due to multidex.
On 15 November 2015 at 04:55, Xavier Ducrohet <[email protected]> wrote: > This is a problem we are aware of, and we have plans to fix/improve this > in the coming months. Stay tuned. > > On Fri, Nov 13, 2015 at 1:59 PM, Csaba Kozák <[email protected]> wrote: > >> Apparently Android Studio does not work this way. If i select the >> 'fastDebug' variant, calling >> API 21 methods are no longer underlined with red. :( The code is under >> src/main/java. >> >> >> On 13 November 2015 at 21:47, Jake Wharton <[email protected]> wrote: >> >>> That would only be true if you put code in src/fast/java (assuming the >>> variant is named 'fast'). The default config (and thus main code) can >>> retain the normal minSdk. >>> >>> On Fri, Nov 13, 2015, 6:02 AM Csaba Kozák <[email protected]> wrote: >>> >>>> The multidexing documentation >>>> <http://developer.android.com/tools/building/multidex.html#dev-build> >>>> suggest to developer to add a flavor which uses minSdkVersion >= 21. >>>> This way a more effective multidexing can be used during Gradle build, >>>> which is faster then legacy multidex. >>>> >>>> This is great, but it has a caveat: if a developer uses minSdkVersion >>>> >= 21 in the development flavor which he >>>> uses for dev he could unintentionally call APIs which are only >>>> available from API 21. >>>> But the real minSdkVersion is lower than 21, so this will cause >>>> problems on older Android versions. >>>> >>>> Is there a way to instruct the multidexing task to use the API 21 >>>> behaviour, but leave the minSdkVersion intact for other tasks (and AS)? >>>> >>>> Thanks in advance! >>>> >>>> -- >>>> 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/d/optout. >>>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "adt-dev" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/adt-dev/SY2IZxmOrqU/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> 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 [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > 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 a topic in the > Google Groups "adt-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adt-dev/SY2IZxmOrqU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
