I've got the same problem, but can't upgrade to ant 1.8. Here is what I did to work around it. Instead of just checking if the out.dex.jar.input.ref is a reference (line 188 of main_rules.xml), I added a check to see if 'proguard.enabled' is true (which seems like the only place that the reference is initialized anyways). Maybe, it might be simpler to change the condition to 'proguard.enabled' and set the out.dexjar.input.ref to empty if it is true, otherwise set it to jar.libs.ref.
Hope that helps, Chris Nagy On Dec 6 2010, 6:05 pm, Xavier Ducrohet <[email protected]> wrote: > I'll take a look at that. > > thanks > Xav > > > > On Mon, Dec 6, 2010 at 2:50 PM, Matt Hall <[email protected]> wrote: > > Thanks for taking a look. > > > Specifically my problem was with out.dex.jar.input.ref in the dex- > > helper. Ant 1.7 had a warning about the conditional in that macrodef, > > and then tried to guess the value for it or something. If I just put > > forced a value for out.dex.jar.input.ref it would work in 1.7. > > > Hope that helps. > > > On Dec 6, 5:33 pm, Xavier Ducrohet <[email protected]> wrote: > >> ugh, this is bad. > > >> I'll have to check it out. I'm running 1.8.1 too but we're trying to > >> be compatible with 1.7. > > >> Of course that particular difference is harder to detect because 1.7 > >> won't complain, it'll simply not do the right thing. > > >> I'll do some checks but in the mean time, we'll update the system > >> requirements. > > >> On Mon, Dec 6, 2010 at 2:11 PM, Matt Hall <[email protected]> wrote: > >> > For anyone else who ends up here, it appears that it was an Ant > >> > version dependency. We were still using v1.7.1 and there was a problem > >> > resolving a conditional setting. Upgrading to 1.8.1 seems to have > >> > fixed it. > > >> > On Dec 6, 2:10 pm, Matt Hall <[email protected]> wrote: > >> >> Hi, we're trying to build our app with the new 2.3 toolset via the ant > >> >> build.xml. The compile completes successfully, but fails to run in the > >> >> emulator or device saying it's missing classes contained in a jar > >> >> file. So it's compiling with the libs folder, but then not bundling > >> >> those libs in the APK. > > >> >> Anyone have any ideas? > > >> >> Thanks, > >> >> Matt > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups "Android Developers" group. > >> > To post to this group, send email to [email protected] > >> > To unsubscribe from this group, send email to > >> > [email protected] > >> > For more options, visit this group at > >> >http://groups.google.com/group/android-developers?hl=en > > >> -- > >> Xavier Ducrohet > >> Android SDK Tech Lead > >> Google Inc. > > >> Please do not send me questions directly. Thanks! > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Xavier Ducrohet > Android SDK Tech Lead > Google Inc. > > Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

