android - proguardFile getDefaultDexGuardFile('dexguard-release.pro') no longer works -
when using dexguard android studio, there's line have needed include our release builds, , that's
proguardfile getdefaultdexguardfile('dexguard-release.pro') i have never been able figure out how change path getdefaultdexguardfile looks in dexguard-release.pro, far has been correctly searching in /lib folder of dexguard folder.
even 2 days ago, android studio 2.0.0 fine. today, tried building release version of project, had found dexguard-release.pro before (with android studio 1.5.0 earlier on), , gives
warning:exception while processing task java.io.filenotfoundexception: /lib/dexguard-release.pro (no such file or directory) how supposed fix this? there appears no documentation through google search (or official dexguard docs) explain workings of getdefaultdexguardfile .. how decides look, or how change it. furthermore, warning message not helpful, giving appears partial path /lib/dexguard-release.pro rather full path of actual place trying find dexguard-release.pro
if tell me how gain control of path getdefaultdexguardfile searching .. ?
first make sure have necessary settings dexguard.
using dexguard in gradle requires buildscript settings in build.gradle file:
buildscript { repositories { … // use path dexguard library flatdir { dirs '/usr/local/dexguard-7.1.02/lib' } } dependencies { … classpath ':dexguard:' } } and apply dexguard plugin:
apply plugin: 'dexguard' if settings fine , still having problems getdefaultdexguardfile() method. can quick fix - ignore method , copy dexguard config files location of dexguard library directly project , reference them directly. note config files might referencing other files have copy them too.
also check license dexguard valid.
and might dexguard not compatible gradle version use or version android build plugin. guess still supporting gradle 2.2, , recent update of android studio trying update 2.10 enable instant run (and similar situation android plugin).
Comments
Post a Comment