Hello,
I am working with Android Studio 2.0
I import the library dependency: compile com.android.gms:play-services:8.4.0
Android Studio 2.0:
These are my devices:
Sony ST26i (Android 4.1.2, API 16) -> My project crashes!!! :(((
Asus Nexus 7 (Android 5.1., API 22) -> My project works fine!!! :)))
Eclipse:
In eclipse I am using play-services:8.3.0 as a library !!!!!
And my two devices works fine !!!!
Note:
I tested to use com.android.gms:play-services:8.3.0 on Android Studio, but it crashes on my mobile device (Sony)
Question1: How can I solve this issue, because I would like to use Android Studio 2.0 vs Eclipse !!!
Question2: How can I import Google_services_XX as a library on Android Studio 2.0 ? (I do not like this solution but ...)
This is my error, but it is not relevant,
E/AndroidRuntime: FATAL EXCEPTION: GLThread 917
java.lang.NoClassDefFoundError: com.myproject.Assets
at com.myproject.Principal.create(Principal.java:54)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:243)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1505)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
This project works fine on my Nexus 7 !!
Please, help !!