Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not be used with unity3d when build onto android or ios platform #804

Closed
unitymatrix opened this issue Jan 20, 2016 · 7 comments
Closed

Comments

@unitymatrix
Copy link

In editor,it's Ok. while not work on mobilephone

@hallem
Copy link
Member

hallem commented Jan 28, 2016

i'm going to need a little more information than it doesn't work. are you seeing an error message?

@VReelTeam
Copy link

VReelTeam commented Mar 20, 2017

I know I'm a fair few months late but this post makes it appear that I'm not the only one who's encountered an issue here then...

The actual problem I'm having is that the "RestSharp.105.2.3" "net35" version seems to work fine in the Unity Editor but when I build the apk for Android (in a project built for Android API Level 19 "Kit Kat") I get the below error.

It appears that the .dll is somehow loading, because I'm not getting a "TypeLoadException: A type load exception has occurred." as I was when the .dll was failing to load. However, the constructor for the RestClient can't be found - any ideas?

ArgumentOutOfRangeException: Argument is out of range.
Parameter name: options
at System.Text.RegularExpressions.Regex.validate_options (RegexOptions options) [0x0003a] in /Users/builduser/buildslave/mono/build/mcs/class/System/System.Text.RegularExpressions/Regex.cs:248
at System.Text.RegularExpressions.Regex..ctor (System.String pattern, RegexOptions options) [0x00017] in /Users/builduser/buildslave/mono/build/mcs/class/System/System.Text.RegularExpressions/Regex.cs:214
at RestSharp.RestClient..ctor () [0x00000] in :0
at RestSharp.RestClient..ctor (System.String baseUrl) [0x00000] in :0

@shzaur
Copy link

shzaur commented May 8, 2017

just install 105.1.0
http://stackoverflow.com/a/33529086/2613974

@yazdir
Copy link

yazdir commented Oct 7, 2017

Is it possible to fix this error? I can't use the last version of RestSharp (current 105.2.3) in unity with mobile build
The error:

ArgumentOutOfRangeException: Argument is out of range.

I just do a new instance of RestClient() in Awake and call Execute in a Coroutine.

@alexeyzimarev
Copy link
Member

You can try the new .NET Standard library out of the pre-release package and see if it is compatible with your platform.

@GwendalBroudin-Emoko
Copy link

GwendalBroudin-Emoko commented Mar 22, 2021

@nankink Any news on this issue ? Do you know the supported Unity platforms on the latest version ?

@alexeyzimarev
Copy link
Member

The issue is closed. Someone who needs RestSharp to work with Unity should implement it, or at least test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants