Invalid ProGuard configuration file. Unknown option '-if' in line 16

MathanKumar M 1 Reputation point
2021-05-04T07:19:52.973+00:00

Hi ,

I am new to Xamarin Development. While i build xamarin application i get the following error.

Invalid ProGuard configuration file. Unknown option '-if' in line 16 of file 'C:\Users\LENOVO.nuget\packages\xamarin.androidx.fragment\1.2.5.4\buildTransitive\monoandroid90....\proguard\proguard.txt', included from argument number 26 at proguard.ConfigurationParser.parse(ConfigurationParser.java:217) at proguard.ProGuard.main(ProGuard.java:530)Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

I actually set the code shrinker option as proguard and Dex compiler set as d8.

I dont know the reason why i got this error. How to resolve it.

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.