GLException: No default device available in Android Studio

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GLException: No default device available in Android Studio

ryanchrome
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?
Reply | Threaded
Open this post in threaded view
|

Re: GLException: No default device available in Android Studio

gouessej
Administrator
Hi

Please give us the following information:
http://jogamp.org/wiki/index.php/Jogl_FAQ#Bugreports_.26_Testing

Android Studio is based on IntelliJ, it should work similarly:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE#IntelliJ_IDEA

We won't be able to help you if we have almost no mean of reproducing your problem.
Julien Gouesse | Personal blog | Website