proyecto26 / RestClient

🦄 A Promise based REST and HTTP client for Unity 🎮
https://assetstore.unity.com/packages/slug/102501
MIT License
1.24k stars 174 forks source link

Error generating apk #68

Closed ljimenez29 closed 5 years ago

ljimenez29 commented 5 years ago

Hi, I am trying this http handler in Unity and it works very well, but when I want to generate the apk for Android the following error is generated:

Assets/RestClient/DemoScene/Scripts/MainScript.cs(20,13): error CS0103: The name `EditorUtility' does not exist in the current context

Assets/RestClient/DemoScene/Scripts/MainScript.cs(58,16): error CS0103: The name `EditorUtility' does not exist in the current context

Assets/RestClient/DemoScene/Scripts/MainScript.cs(79,5): error CS0103: The name `EditorUtility' does not exist in the current context

Assets/RestClient/DemoScene/Scripts/MainScript.cs(82,5): error CS0103: The name `EditorUtility' does not exist in the current context

Assets/RestClient/DemoScene/Scripts/MainScript.cs(91,5): error CS0103: The name `EditorUtility' does not exist in the current context

Assets/RestClient/DemoScene/Scripts/MainScript.cs(94,5): error CS0103: The name `EditorUtility' does not exist in the current context

Error building Player because scripts had compiler errors

Build completed with a result of 'Failed'
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

UnityEditor.BuildPlayerWindow+BuildMethodException: 7 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89 
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

I would appreciate your help

jdnichollsc commented 5 years ago

Yeah, because you need to remove the demo folder of the plugin

ljimenez29 commented 5 years ago

Yeah, because you need to remove the demo folder of the plugin

Thank you

jdnichollsc commented 5 years ago

You're welcome! 👍