Android Sample Build Error

Hi,

I am trying to install the ExtendingUI apk created by the build scripts

but the application stops right away with the following errors:

Two Facebook related errors:

E/dalvikvm(596): Could not find class 'com.facebook.android.Facebook', referenced from method com.ansca.corona.Controller.facebookLogin E/dalvikvm(596): Could not find class 'com.ansca.corona.Controller$15', referenced from method com.ansca.corona.Controller.facebookRequest

One  Open GL related error:

E/AndroidRuntime(596): FATAL EXCEPTION: GLThread 72 E/AndroidRuntime(596): java.lang.IllegalArgumentException: No configs match configSpec E/AndroidRuntime(596):     at com.ansca.corona.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:877) E/AndroidRuntime(596):     at com.ansca.corona.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1069) E/AndroidRuntime(596):     at com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1507) E/AndroidRuntime(596):     at com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)

Here is my setup:

OS:
   Mountain Lion (Japanese)

Android:
    Android SDK Tools 21,
    Platform-tools 16

Emulator tried:
    Android 4.2,4.1.2,2.3(All of them gave me this error)

Has anybody met the same error?

Is there a specific setup required for the emulator to make it work?

(It does seem to come from the Corona framework side though…)

How one can fix it?

Thank you in advance!

so basically, i’ve tried on a real device and it worked.

It seems that the emulator Open GL2.0 is not supported or something like that (even with setting the use host GPU)…

http://stackoverflow.com/questions/6594636/java-lang-illegalargumentexception-no-configs-match-configspec-while-openin

At first, I thought it was coming from Corona side but it seems they are wrapping an other class…

So, it is far to be ideal as I need to test against a real device (the application is around 200m and it does take some time to transfer it)…

Also, it would be very nice to stipulate this somewhere in the doc.

You can run your APK via the Android Emulator by following instructions posted here…

http://forums.coronalabs.com/topic/27010-guide-to-getting-your-corona-app-to-run-on-the-android-emulator/

That said, in my opinion, the Android Emulator is so slow that it is not worth using.  Testing on a real Android device is the way to go.

Thank you for your reply.

This kind of information would definitely be better suited in your documentation to avoid a huge waste of time for new comers.

“If we encourage you to test your application on a real device, you can still test it on an emulator by using the following settings:” (below goes the set up above).

so basically, i’ve tried on a real device and it worked.

It seems that the emulator Open GL2.0 is not supported or something like that (even with setting the use host GPU)…

http://stackoverflow.com/questions/6594636/java-lang-illegalargumentexception-no-configs-match-configspec-while-openin

At first, I thought it was coming from Corona side but it seems they are wrapping an other class…

So, it is far to be ideal as I need to test against a real device (the application is around 200m and it does take some time to transfer it)…

Also, it would be very nice to stipulate this somewhere in the doc.

You can run your APK via the Android Emulator by following instructions posted here…

http://forums.coronalabs.com/topic/27010-guide-to-getting-your-corona-app-to-run-on-the-android-emulator/

That said, in my opinion, the Android Emulator is so slow that it is not worth using.  Testing on a real Android device is the way to go.

Thank you for your reply.

This kind of information would definitely be better suited in your documentation to avoid a huge waste of time for new comers.

“If we encourage you to test your application on a real device, you can still test it on an emulator by using the following settings:” (below goes the set up above).