I'm trying to migrate my project from Ant to Gradle, and i cannot solve the following issue: I need to access android @hide fields (without reflection).
Up until now, I used a custom jar containing java classes with all the hidden fields (example: WifiManager.WIFI_SCAN_AVAILABLE). Note that this custom jar was used only as a reference (excluded from final apk). In Eclipse, I modified the classpath (in "order and export" tab) to have this custom jar above the android SDK's jar. In Ant, i had to add the following lines, in my project's custom_rules.xml: <path id="project.target.class.path" > <pathelement location="../../misc/classes-full-debug_V5.0.jar" /> <pathelement location="${project.target.android.jar}" /> </path> With this i was able to use hidden fields from WifiManager, TelephonyManager, ConnectivityManager, etc. How do I reproduce this behaviour using Gradle ? The problem is that the Gradle is accessing the 'unmodified' WifiManager class (provided by the android sdk) instead of the custom one. Is there a way to shadow it? -- 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.