UXDivers / Gorilla-Player-Support

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

Cannot get past the missing data error #353

Closed carlhoogstoel closed 5 years ago

carlhoogstoel commented 5 years ago

Using 1.5.2 of the player and everything seems to work fine with the Gorilla server and Visual Studio 2019. The only issue is that I cannot get the DesignTimeData.json file to serve data to the viewer. I have tried virtualy everything bit I cannot find out why the data is not shown.

I am trying to get it to work with your MyPeople.xaml and the following json data to no avail:

"MyPeople.xaml": [ { "Name": "John Silverstain", "City": "MELBOURNE", "Department": "Marketing", "Color": "Red", "Age": 29, "Followers": 243, "Photo": "friend_thumbnail_27.jpg" }, { "Name": "Pam Tailor", "City": "SIDNEY", "Department": "Design", "Age": 32, "Followers": 24, "Photo": "friend_thumbnail_75.jpg" }, { "Name": "Casy Niman", "City": "HOBART", "Department": "Accounts", "Age": 58, "Followers": 267, "Photo": "friend_thumbnail_93.jpg" }, { "Name": "Gorge Tach", "City": "NEWCASTLE", "Department": "Design", "Age": 29, "Followers": 127, "Photo": "friend_thumbnail_55.jpg" }, { "Name": "Cristina Maciel", "City": "HOBART", "Department": "Mobile Dev.", "Age": 32, "Followers": 80, "Photo": "friend_thumbnail_31.jpg" }, { "Name": "Simon Deuva", "City": "MELBOURNE", "Department": "Media", "Age": 58, "Followers": 420, "Photo": "friend_thumbnail_34.jpg" } ]

The logs also don't give any info.

{"level":"info","message":"Setting Target: MyPeople.xaml (D:\xxx.csproj) requested from VS (16.0)","timestamp":"2019-06-15T18:42:42.954Z"} {"level":"verbose","message":"Stats saved","timestamp":"2019-06-15T18:42:42.963Z"} {"level":"error","message":"Could not found assembly Mono.Android with version . It will be ignored.","timestamp":"2019-06-15T18:42:42.963Z"} {"level":"error","message":"Could not found assembly xxx with version . It will be ignored.","timestamp":"2019-06-15T18:42:42.963Z"} {"level":"error","message":"Could not found assembly Xamanimation with version . It will be ignored.","timestamp":"2019-06-15T18:42:42.963Z"} {"level":"warn","message":"Unable to resolve type 'xxx.MyPeopleTemplate' with arguments '' and assembly ''.","timestamp":"2019-06-15T18:42:42.965Z"} {"level":"warn","message":"Unable to resolve type 'xxx.MyPeopleTemplate' with arguments '' and assembly ''.","timestamp":"2019-06-15T18:42:42.966Z"} {"level":"warn","message":"Found assembly Xamarin.Forms.Core but versions are incompatible. Expected 2.0.0.0, existent 3.2.0.839982.","timestamp":"2019-06-15T18:42:43.007Z"} {"level":"verbose","message":"Stats saved","timestamp":"2019-06-15T18:42:43.015Z"} {"contextInstanceId":164,"targetId":109,"sampleDataId":0,"level":"verbose","message":"Infered binding specification: {\"Photo\":{},\"Name\":{},\"Department\":{},\"City\":{},\"Followers\":{}}","timestamp":"2019-06-15T18:42:43.016Z"} {"contextInstanceId":164,"targetId":109,"sampleDataId":0,"level":"debug","message":"Target updated notification with: xamlAffected=true, dataAffected=false","timestamp":"2019-06-15T18:42:43.016Z"} {"contextInstanceId":164,"targetId":109,"sampleDataId":0,"level":"verbose","message":"Sending status response 0","timestamp":"2019-06-15T18:42:43.017Z"}

The only difference I can see between my project and your sample project is that yours is a PCL and mine is a .NetStandard 2.0 project (as the shared project).

image

I am assuming it has nothing to do with the actual json serving the data as the error is not saying what is actualy missing. Therefore, I think it might be something with a missing binary. I also checked with FusLogVw, but I caanot see anything that fails to load.

Shared project config:

image

One final thing I noticed was the difference in the MainActivity between my code and your sample. Mine was inheriting from FormsAppCompatActivity whilst your sample was using global::Xamarin.Forms.Platform.Android.FormsApplicationActivity.

image

Any advice would be greatly appreciated:)