Gorilla-Player-Support icon indicating copy to clipboard operation
Gorilla-Player-Support copied to clipboard

Unable to install on Android emulator

Open jacquesprogram opened this issue 7 years ago • 12 comments

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...

jacquesprogram avatar Sep 03 '18 08:09 jacquesprogram

@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.

jadenrogers avatar Oct 11 '18 17:10 jadenrogers

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?

profpjmg avatar Jan 28 '19 21:01 profpjmg

@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

jadenrogers avatar Jan 28 '19 22:01 jadenrogers

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

errors

Anything missing...

profpjmg avatar Jan 28 '19 23:01 profpjmg

@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

jadenrogers avatar Jan 28 '19 23:01 jadenrogers

I have got this: capturar

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

profpjmg avatar Jan 28 '19 23:01 profpjmg

@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

jadenrogers avatar Jan 28 '19 23:01 jadenrogers

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.

profpjmg avatar Jan 29 '19 00:01 profpjmg

@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.

jadenrogers avatar Jan 29 '19 01:01 jadenrogers

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 avatar Jan 29 '19 01:01 profpjmg

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

profpjmg avatar Jan 29 '19 07:01 profpjmg

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 :)

luisguerrerolab avatar Jan 29 '19 23:01 luisguerrerolab