i am working on xamarin application. When i enable "ProGuard" in android properties, while building the application, I'm getting the following error:
"java.exe" exited with code1.
proguard cfg file has the following:
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
Developing Environment:
Visual Studio 2015
Xamarin 4.0.4.4
I had the same issue when enabling ProGuard. By following the advice on this link, I fixed the issue by updating my proguard manually. The steps are fairly easy to follow and they fixed the problem. Hope this helps you.
I had a problem where Proguard was removing the Google Play Services libraries from my app.
I had to add the following lines of text to the
proguard-android.txt
file found in this folder:/(Path to your Android SDK Folder)/tools/proguard
Complete proguard-android.txt File