stntz / Xamarin.ZoomBinding

Zoom Mobile SDK Binding for Xamarin Android and iOS(device only)
15 stars 13 forks source link

Build error in Android on release mode #2

Closed PraveenPotla closed 4 years ago

PraveenPotla commented 4 years ago

Hi Stntz, I am getting an error in Andriod on release mode. find the error in the attachment below. though I kept "Java Max Heap Size: 1G " still It is showing the same error. and also the app size too large.

Thanks in advance

Screenshot (2)

stntz commented 4 years ago

Is this only in release mode? Also can you make sure the dll built by the CommonLib and MobileRtc_Droid is referenced in the Android project and MobileRTC_iOS in the iOS demo project. You might need to build the binding project in release mode before you run your app in release

stntz commented 4 years ago

Also can you set the link tool on android in release to r8 image

PraveenPotla commented 4 years ago

Yes getting error in release mode only. Not in debug mode. In zoom.andriod project dll reference is took form nuget. See attachment below IMG_20200518_012522

stntz commented 4 years ago

I have just tried the project(android) as is against the nuget package and it works in debug and release mode. try this on a physical device and see if it makes any difference.

as for the apk size, you will probably want to build for the architecture you need. the zoom sdk is very big but you can look at this link for suggestion( you might need to fork the repo and change the .aar file) https://devforum.zoom.us/t/when-i-integrate-zoom-sdk-my-app-size-increased-to-80mb/7613/4?u=stntz

PraveenPotla commented 4 years ago

Hi stntz, I am getting different an error see the attachment below in release mode

Screenshot (4)_LI

I am using below are the architectures and AndroidLinkMode

Screenshot (5)

Thanks in advance

stntz commented 4 years ago

try a few different options with the android settings, make sure to clean your output folders and possibly disable the r8 shrinker. I can't replicate this issue... attach a repro if you want or pull the samples folder again

stntz commented 4 years ago

https://forums.xamarin.com/discussion/175824/r8-enabled-gives-build-error-compilation-cant-be-completed-because-some-library-classes-ar

read that and try the workaround in there, looks like a common issue along the xamarin android setup.

edit: https://github.com/xamarin/xamarin-android/pull/4509 should use that workaround. will close now as it is not the library.