dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.92k stars 525 forks source link

Xamarin Android Binding Library Project fails using Proguard and Linker #4475

Closed EmilAlipiev closed 4 years ago

EmilAlipiev commented 4 years ago

Steps to Reproduce

I have created a android binding library using Samsung Accessory Sdk jar file. Everything works fine when I use Without linking or Sdk Assemblies only. But using full linking it fails with error MSB6006: "java.exe" exited with code 1. Thats typical proguard error but I couldnt figure out what could be the exact issue although I enabled diagnostic logs and logs doesnt say anything. There SO post like below suggesting Proguard settings for Samsung Accessory Sdk. I tried all but unfortunately none of them worked for me. It is probably because I used Binding Library and it has some exception. It looks like that no way to keep binding library working using Proguard. Is it a bug?

https://stackoverflow.com/questions/24872517/proguard-issue-with-saagentsamsung-accessory-java-lang-nosuchmethodexception

SamsungWearCompanion.zip

Expected Behavior

It should work with my proguard config rules or at least give me a specific reason why it fails.

Actual Behavior

returns error as "java.exe" exited with code 1." and no sufficient information in diagnostic logs

Version Information