question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silk.Net for Android Exception

See original GitHub issue

Code:

using LiteEngine;
using Silk.NET.Windowing;
using Silk.NET.Windowing.Sdl.Android;

namespace AndroidLauncher;

[Activity(Label = "@string/app_name", MainLauncher = true)]
public class MainActivity : SilkActivity
{
    private IView view;

    

    protected override void OnRun()
    {
        var options = ViewOptions.Default;
        options.API = new GraphicsAPI(ContextAPI.OpenGLES, ContextProfile.Compatability, ContextFlags.Default, new APIVersion(3, 0));
        view = Silk.NET.Windowing.Window.GetView(options);
        view.Load += Init;
        view.Update += Update;
        view.Render += Render;
        view.Run();
        Fini();
    }
    private void Update(double time)
    {
        //Engine.Instance.Update((float)time);
    }

    private void Render(double time)
    {
        //Engine.Instance.Render();
    }

    private void Init()
    {

       // Engine.Instance.Init();
    }


    private void Fini()
    {

        //Engine.Instance.Fini();
    }
}

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
  <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" >
  </application>
	<uses-permission android:name="android.permission.BLUETOOTH"
                     android:maxSdkVersion="30" />
</manifest>

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Perkseycommented, Mar 24, 2022

At a guess, your device does not support OpenGLES 3.0.

0reactions
Perkseycommented, Mar 25, 2022

I’m going to close this issue given this isn’t a Silk.NET bug. For future questions please use Discussions or our Discord in the first instance and if we find there’s a Silk.NET bug an issue can be created then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Silk.NET
Create, a PlatformNotSupportedException is thrown with a message indicating that the windowing system couldn't find a windowing platform.
Read more >
TriangleDroid test app crashes while trying to get GL ...
Encountering the following exception while trying to run the TriangleDroid app within Labs either on an emulator (targeting API 28 / Android ......
Read more >
net6.0-android: Java.Interop conflict · Issue #681
Summary Referencing Silk.NET.Windowing 2.10.0. Compiling result in following error: 1>CSC : error CS1705: Assembly 'Silk.NET.Windowing.
Read more >
Common exceptions
PlatformNotSupportedException : Couldn't find a suitable windowing platform. ... Silk.NET should do a good job of copying the appropriate native libraries ...
Read more >
Silk.NET.OpenGL.Legacy.Extensions.WIN 2.1.0
Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found