This is normal as the dependencies given to the IDE are built from the actual dependency graph.
you are manually editing the classpath of the compile task which bypasses the model. There's no API to add extra dependencies to the model when you do this. On Fri, Jan 3, 2014 at 10:27 AM, Scott Culverhouse < [email protected]> wrote: > It transpires I was using 0.7.3 (ie 0.7.+), I've forced it to 0.7.3 and > the same result in AS (Android Studio 0.4.0). > > BTW it compiles OK within AS it's just the code completion and error > highlighting. > > > On Friday, 3 January 2014 18:11:47 UTC, Michael Barany wrote: >> >> Try plugin 0.7.3, there was a bug in 0.7.2 that limited it to Java 1.6 >> >> On Friday, January 3, 2014 5:48:21 AM UTC-5, Scott Culverhouse wrote: >>> >>> The below works with the latest buildtools (19.0.1) and gradle plugin >>> (0.7.2) in terminal however in AS it shows "Cannot resolve symbol" for the >>> jar which is "provided". >>> >>> Any ideas on how to exclude the certain classes from the dex. This is >>> for the xposed framework where the jar is already on the device. >>> >>> >>> >>> On Friday, 16 August 2013 18:51:10 UTC+1, Andy Lo A Foe wrote: >>>> >>>> I just ran into the same issue where I needed to exclude the jar for a >>>> a device provided implementation (uses-library). The following gradle >>>> config snippet worked for me: >>>> >>>> configurations { >>>> provided >>>> } >>>> >>>> android.applicationVariants.all { >>>> variant -> variant.javaCompile.classpath += configurations.provided >>>> } >>>> >>>> dependencies { >>>> provided files('libs/samsung_ble_sdk_200.jar') >>>> } >>>> >>>> Last comment in https://code.google.com/p/ >>>> android/issues/detail?id=55764 helped i.e. use ".all" instead of >>>> ".each" for latest gradle release. >>>> >>>> Cheers, >>>> Andy >>>> >>> -- > 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]. For more options, visit https://groups.google.com/groups/opt_out.
