UXDivers / Gorilla-Player-Support

This is the public Gorilla Player support website
http://gorillaplayer.com
115 stars 17 forks source link

Unable to install on Android emulator #305

Open jacquesprogram opened 6 years ago

jacquesprogram commented 6 years ago

Hello, I've installed Gorilla Player desktop app and Visual Studio 2017 addin as well. I'm trying now to install Gorilla on the android emulator provided by VS ( 'Android_Accelerated_Nougat (Android 7.1 API25)' ). The emulator launches and the deployment process starts but nothing happens on the emulator, gorilla player never starts. The deployment process keeps going in a neverending loop... I don't know what I'm doing wrong...

jadenrogers commented 6 years ago

@jacquesprogram You could just have an issue with your emulator. Does the emulator actually run, as in you see the typical home screen for Android? Android emulators can be troublesome all by them self, deploy to a real device to check.

profpjmg commented 5 years ago

Hi, I have the same problem. I've tried several android emulators including a real device and none of them worked. The connection to the server works and the gorilla icon appears in the xaml file. Someone can help me?

jadenrogers commented 5 years ago

@profpjmg so in your android app you have installed the UXDivers.GorillaPlayer.SDK ?

Then in your mainactivity.cs in android Simply comment the default "LoadApplication(new App());" and replace it so it looks like the below.

//LoadApplication(new App());

LoadApplication (UXDivers.Gorilla.Droid.Player.CreateApplication(
     this, new UXDivers.Gorilla.Config("Good Gorilla")    
));

Taken from https://github.com/UXDivers/Gorilla-Player-Support/wiki/Gorilla-SDK

profpjmg commented 5 years ago

Thanks for your answer! I have installed the UXDivers.GorillaPlayer.SDK.Autoconfig I got the following errors:

errors

Anything missing...

jadenrogers commented 5 years ago

@profpjmg Yes just for getting started remove the autoconfig package and just install

UXDivers.GorillaPlayer.SDK

Install-Package UXDivers.GorillaPlayer.SDK -Version 1.5.0
profpjmg commented 5 years ago

I have got this: capturar

He ask me for the server ip. Where can I find it?

jadenrogers commented 5 years ago

@profpjmg

Good stuff. First make sure Gorilla player server is running on your dev machine. Make sure your device is on the same local network.

If it doesn't detect the server automatically get your PC local IP by right clicking the Gorilla Player tray icon and selecting "About Gorilla Player"

Then "Show Details" and you should see your IP address. Punch it into the app along with colon and the default port "9014" and hit connect!

For example mine would be 192.168.1.27:9014

image

image

profpjmg commented 5 years ago

I don't find my local IP in the Gorilla Player because the aplication with right clicking in the icon don't show me nothing. I find him in the internet. After entering the IP (starts 192.168....) I got the following image:

error2

Thank you for the patience.

jadenrogers commented 5 years ago

@profpjmg needs to be local IP not your internet IP if that's what you have meant.

Try going to start - run. Type "cmd" enter

in the cmd window - type ipconfig

use the IPv4 value

image

Once you got that you may need to look at your Windows firewall if it still isn't working. Turn off windows firewall to identify that it is the issue. If it is then you want to allow Gorilla Player through but you can cross that bridge later if that is the problem.

profpjmg commented 5 years ago

I find my local IP like you have said and I have disconnect the firewall of W10 and Kaspersky, he still give me the same error: time out. I try a seconde time with my local IP:9014 I think it works but the previewr does not make updates.

profpjmg commented 5 years ago

It works! I forgot to save changes, Thank you very much

luisguerrerolab commented 5 years ago

I had the same problem with the Android emulator on a Mac. The screen was just looping waiting for a server to connect with. I created a brand new Xamarin.Forms Master+Detail application template (Shared Project) and tried to connect Gorilla from scratch.

I typed ifconfig on my terminal and looked up for the e0 block:

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    ether 7c:74:89:39:0e:4f
    inet6 fe21::1a0:dba7:5f42:bf4c%en0 prefixlen 64 secured scopeid 0x6
    inet 192.168.100.149 netmask 0xffffff00 broadcast 192.168.100.255
    nd6 options=201<PERFORMNUD,DAD>
    media: autoselect
    status: active

Then I copied the IP from the inet line and pasted it on the Android emulator. It works now :)