-
Notifications
You must be signed in to change notification settings - Fork 598
error while adding multiple proguard directory in release type #138
Comments
switch it to proguardFiles fileTree(dir: "cproguardfiles", include: ["*.pro"]).asList().toArray() |
thanks it worked. |
although the error is removed but it didn't accept the proguard files added, here is the screenshot of the error here is the error along with screenshot,
|
Include these in your proguard-rules.pro -dontwarn com.fasterxml.** |
if i add these lines in proguard-rules.pro, then "{ file('./cproguardfiles').listFiles() }" will be useless, your as well as mine efforts will go in vein. |
I don't understand. Can you provide any reference? What I read about -dontwarn is they are only used to ignore warnings while building. So if you know that some unreferenced class won't create a mess in your project then its totally okay to use these. |
please add this "proguardFiles fileTree(dir: "proguard", include: ["*.pro"]).asList().toArray()" and remove these lines, |
@sauravexodus , means i include these then, what will be the advantage of adding your file as i have to write the code in my own proguard files. |
@TheGreat0004 line of code solved it for me |
FileCollection proGuardFileCollection = files { file('./cproguardfiles').listFiles() }
proguardFiles(proGuardFileCollection)
Folder name is: cproguardfiles(in project structure )
Error:(23, 0) Cannot convert the provided notation to a File or URI: file collection.
The following types/formats are supported:
This is
The text was updated successfully, but these errors were encountered: