Login  Register

GLException: No default device available in Android Studio

Posted by ryanchrome on Jun 12, 2017; 1:34am
URL: https://forum.jogamp.org/GLException-No-default-device-available-in-Android-Studio-tp4038031.html

Duplicate files copied in APK META-INF/LICENSE
path\to\file\miglayout-3.7.4.jar
path\to\file\log4j-1.2.16.jar

I cannot delete either, because they are redownloaded by my maven dependencies when I build the gradle. I remediated the problem by adding

    packagingOptions{
        pickFirst 'META-INF/*'
    }

within the android section of my build.gradle

The error was thrown by the following block of code

    if(null==defaultDevice) { // avoid NPE and notify of incomplete initialization
        throw new GLException("No default device available");
    }

How can I work my way around this problem?