stntz / Xamarin.ZoomBinding

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

Unable to Build with Release Mode for Android #14

Open kgbuddhima opened 4 years ago

kgbuddhima commented 4 years ago

Its giving set of error messages like this when I was trying to build the android app in Release mode..

Found tag where is expected ZoomApp.Android H:\FL\ZoomApp\ZoomApp\ZoomApp\ZoomApp.Android\obj\Release\100\lp\2\jl\res\values\values.xml 2

Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? ZoomApp.Android H:\FL\ZoomApp\ZoomApp\ZoomApp\ZoomApp.Android\obj\Release\100\lp\2\jl\res\values-de\values-de.xml

I created a POC app and the here are the libraries I used for the android app.. image

image

** Please note that the app works fine on Debug mode on Simulators and Live Device.

stntz commented 4 years ago

Hi @kgbuddhima do you have the right AndroidX dependencies in the project.

kgbuddhima commented 4 years ago

Hi @kgbuddhima do you have the right AndroidX dependencies in the project.

Yes. May I send you the project that I created if necessary?

stntz commented 4 years ago

ok.. share a zip or a repo i can clone

kgbuddhima commented 4 years ago

ok.. share a zip or a repo i can clone

https://github.com/kgbuddhima/ZoomApp

I added android X libraries manually to csproj because they did were not added to references while installing the Xamarin.Android.Zoom nuget package.

image

And the previous error is no more there.

but Now.. Now I'm having this issue.. "java.exe" exited with code 1. ZoomApp.Android

sunnykmv commented 4 years ago

Hi, Am also facing same issues.v Its working in debug mode. But not working in Release mode.Please do needfull.

stntz commented 4 years ago

have you cloned the repo to check it out in release?

sunnykmv commented 4 years ago

No ididn't clone the repo. i have project in my local machine. am getting below error in release mode. But same as below mentioned project.

https://github.com/kgbuddhima/ZoomApp

Error:- Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute? ZoomApp.Android H:\FL\ZoomApp\ZoomApp\ZoomApp\ZoomApp.Android\obj\Release\100\lp\2\jl\res\values-de\values-de.xml

Can u pls check do needfull.

sunnykmv commented 4 years ago

Hi, After adding android X libraries and zoom sdk working in debug mode but getting errors in release mode.

Here is my project https://github.com/sunnykmv/zoomapp

Can you please do needfull.

GiampaoloGabba commented 3 years ago

To make it work, you need to open the .aar file, open all the values.xml for all the languages (in the res folder) and replace %s with %1$s and %d with %1$d

This will fix the resource problem.

I'm working on binding the latest version of the Zoom SDK, wich also require a binding for Google Tink.

So far i got this working with XF5 and the latest Zoom SDK (v5.5.1.1319, pubblished 04/27/21). The bindings are ugly, tho :(. I need to work on parameters/methods name and some returntypes , ecc.. Plus i'm ignoring every function to create meetings, i just want a zoom client to join meeting/webinars, nothing more :)

I think i will create an xf plugin with all the basic functions for joining meetings/webinars, anyone interested/willing to help? :)

AdamDiament commented 3 years ago

To make it work, you need to open the .aar file, open all the values.xml for all the languages (in the res folder) and replace %s with %1$s and %d with %1$d

This will fix the resource problem.

I'm working on binding the latest version of the Zoom SDK, wich also require a binding for Google Tink.

So far i got this working with XF5 and the latest Zoom SDK (v5.5.1.1319, pubblished 04/27/21). The bindings are ugly, tho :(. I need to work on parameters/methods name and some returntypes , ecc.. Plus i'm ignoring every function to create meetings, i just want a zoom client to join meeting/webinars, nothing more :)

I think i will create an xf plugin with all the basic functions for joining meetings/webinars, anyone interested/willing to help? :)

Hi @GiampaoloGabba this sounds great. I have a fork for the latest zoom android sdk compiling for zoom sdk (also with some ugly bindings!), but I am facing this resource issue. I'm going to try your find and replace trick now. I will be willing to share my fork with you to see if we can use each other's code, and may have some time also to help create the plugin.

AdamDiament commented 3 years ago

@GiampaoloGabba I did your find and replace trick, but unfortunately I still get the missing resources as follows:

image

If I try to add them in manually to my Android App's styles.xml, it works, but more pop out of the woodwork in the build error. Did you run into anything like this in your code?

I've now got the go-ahead from my employer to put some time into this, so if you (or anyone else reading) wants to work together on a fork or a branch to get this upgraded, please get in touch.

stntz commented 3 years ago

Link to a helper tool, only supports doing "%s" or "%d", individually. Utility to replace positional placeholders