Google Play Services out of date in Android Emulator - android

I have an android emulator with Marshmallow and Google Apis.
For some reason the Google Play Services got stuck in release 8.1.85 and it doesn't get updated.
My app uses the 8.3 release in Android Studio Gradle:
compile 'com.google.android.gms:play-services:8.3.0'
When the app starts it detects it is out of date so the "update dialog" appears. Clicking on update it does nothing. I get this log:
12-21 12:21:46.369 3516-3516/app.pack.com W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185470
12-21 12:21:46.548 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:46.548 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabff10c0, error=EGL_SUCCESS
12-21 12:21:46.685 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:46.686 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f09320, error=EGL_SUCCESS
12-21 12:21:47.065 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:47.065 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f3f240, error=EGL_SUCCESS
12-21 12:21:50.302 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7980b0
12-21 12:21:56.326 3516-3516/app.pack.com E/SettingsRedirect: Can't redirect to app settings for Google Play services
12-21 12:21:56.333 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab796d70
12-21 12:21:56.339 3516-3541/app.pack.com D/OpenGLRenderer: endAllStagingAnimators on 0xa19fa980 (RippleDrawable) with handle 0xb12c9ac0
12-21 12:21:56.366 3516-3516/app.pack.com W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185470
12-21 12:21:56.432 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:56.432 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xad71b0c0, error=EGL_SUCCESS
12-21 12:21:56.793 3516-3541/app.pack.com W/EGL_emulation: eglSurfaceAttrib not implemented
12-21 12:21:56.793 3516-3541/app.pack.com W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f3f920, error=EGL_SUCCESS
12-21 12:22:00.027 3516-3541/app.pack.com E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab798e40

The solution I've tried for this issue before is to change:
compile 'com.google.android.gms:play-services:8.3.0'
to
compile 'com.google.android.gms:play-services:7.+'
Sometimes, what is reflected on the gradle is not the actual version and by putting + the app will automatically use the latest version available.

Here is solution: using AVD image with build-in Google Play Services. It will enable you to use Google Services including Google Play. Also you will be able update it without re-creating AVD image.
Open AVD manager and choose create new device. You should use device definition with play store icon.
Then choose system image for it. You should choose one with Google Play and NOT with Google API.
Then launch new device.
You can update Play Services as shown on screenshot, or manually on device..

Related

How to add Firebase into android

I want added Firebase into my application. I write below codes, but when running application I can't see TOKEN in log!
My dependencies :
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.google.firebase:firebase-messaging:10.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Manifest :
<application>
...
<!--Firebase service-->
<service android:name=".CloudMSG.MyFirebaseInctanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>
</application>
MyFirebaseInctanceIdService :
public class MyFirebaseInctanceIdService extends FirebaseInstanceIdService {
private static final String TAG = "MyFirebaseInctance";
#Override
public void onTokenRefresh() {
// Get updated InstanceID token.
String refreshedToken = FirebaseInstanceId.getInstance().getToken();
Log.d("MyFirebaseInctance", "Refreshed token: " + refreshedToken);
// If you want to send messages to this application instance or
// manage this apps subscriptions on the server side, send the
// Instance ID token to your app server.
//sendRegistrationToServer(refreshedToken);
}
}
Logs:
03-30 13:36:42.943 9487-9487/? I/art: Late-enabling -Xcheck:jni
03-30 13:36:43.218 9487-9487/com.example.mohammad.a1_firebase D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
03-30 13:36:43.269 9487-9487/com.example.mohammad.a1_firebase W/InstanceID/Rpc: Found 10004
03-30 13:36:43.298 9487-9487/com.example.mohammad.a1_firebase D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase I/FA: App measurement is starting up, version: 10084
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase D/FA: Debug-level message logging enabled
03-30 13:36:43.364 9487-9487/com.example.mohammad.a1_firebase D/FA: AppMeasurement singleton hash: 720240273
03-30 13:36:43.404 9487-9487/com.example.mohammad.a1_firebase V/FA: Collection enabled
03-30 13:36:43.404 9487-9487/com.example.mohammad.a1_firebase V/FA: App package, google app id: com.example.mohammad.a1_firebase, 1:685652680518:android:0280a3bc1c6da8cb
03-30 13:36:43.405 9487-9487/com.example.mohammad.a1_firebase I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.example.mohammad.a1_firebase
03-30 13:36:43.463 9487-9487/com.example.mohammad.a1_firebase V/FA: Registered activity lifecycle callback
03-30 13:36:43.465 9487-9487/com.example.mohammad.a1_firebase I/FirebaseInitProvider: FirebaseApp initialization successful
03-30 13:36:43.467 9487-9487/com.example.mohammad.a1_firebase I/InstantRun: Starting Instant Run Server for com.example.mohammad.a1_firebase
03-30 13:36:43.471 9487-9587/com.example.mohammad.a1_firebase V/FA: Using measurement service
03-30 13:36:43.489 9487-9587/com.example.mohammad.a1_firebase V/FA: Connecting to remote service
03-30 13:36:43.528 9487-9587/com.example.mohammad.a1_firebase W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 6599430
03-30 13:36:43.612 9487-9487/com.example.mohammad.a1_firebase D/ContextHelper: convertTheme. context->name=com.example.mohammad.a1_firebase themeResourceId=2131230883
03-30 13:36:43.656 9487-9487/com.example.mohammad.a1_firebase W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
03-30 13:36:43.690 9487-9487/com.example.mohammad.a1_firebase V/FA: onActivityCreated
03-30 13:36:43.696 9487-9487/com.example.mohammad.a1_firebase I/PhoneWindow: [generateLayout] setColorNavigationBar => color=0x ff000001
03-30 13:36:43.718 9487-9487/com.example.mohammad.a1_firebase D/PhoneWindowEx: [PWEx][generateLayout] setNavigationBarColor2 : colors=0xfff5f5f5
03-30 13:36:43.718 9487-9487/com.example.mohammad.a1_firebase I/PhoneWindow: [setNavigationBarColor2] color=0x fff5f5f5
03-30 13:36:43.859 9487-9587/com.example.mohammad.a1_firebase V/FA: Using measurement service
03-30 13:36:43.859 9487-9587/com.example.mohammad.a1_firebase V/FA: Connection attempt already in progress
03-30 13:36:43.864 9487-9587/com.example.mohammad.a1_firebase V/FA: Activity resumed, time: 1436094125
03-30 13:36:43.879 9487-9612/com.example.mohammad.a1_firebase D/OpenGLRenderer: Render dirty regions requested: true
03-30 13:36:43.881 9487-9612/com.example.mohammad.a1_firebase I/Adreno-EGL: <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.013_msm8974_LA.BF.1.1.1_RB1__release_AU ()
OpenGL ES Shader Compiler Version: E031.25.03.00
Build Date: 01/21/15 Wed
Local Branch: mybranch7061829
Remote Branch: quic/LA.BF.1.1.1_rb1.7
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_LA.BF.1.1.1_RB1.05.00.02.042.013 + NOTHING
03-30 13:36:43.882 9487-9612/com.example.mohammad.a1_firebase I/OpenGLRenderer: Initialized EGL, version 1.4
03-30 13:36:43.910 9487-9612/com.example.mohammad.a1_firebase D/OpenGLRenderer: Enabling debug mode 0
03-30 13:36:43.916 9487-9487/com.example.mohammad.a1_firebase D/Atlas: Validating map...
03-30 13:36:43.927 9487-9487/com.example.mohammad.a1_firebase W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-30 13:36:43.936 9487-9592/com.example.mohammad.a1_firebase D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 30s
03-30 13:36:44.008 9487-9502/com.example.mohammad.a1_firebase W/art: Suspending all threads took: 5.068ms
03-30 13:36:44.047 9487-9487/com.example.mohammad.a1_firebase W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
03-30 13:36:44.183 9487-9487/com.example.mohammad.a1_firebase I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy#755dbad time:128236912
03-30 13:37:14.017 9487-10051/com.example.mohammad.a1_firebase D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 60s
How can I fix this issue and show Firebase token in logs?
Firebase onTokenRefresh() will only be called if your token changes. Before that you should invoke
FirebaseInstanceId.getInstance().getToken()
in your initial activity (like MainActivity) maybe.
why you not tried integrated android studio with firebase directly using Tools menu-->firebase
add this line Gradle :-Module(app)
compile 'com.google.firebase:firebase-crash:10.2.0'
compile 'com.google.firebase:firebase-auth:10.2.0'
Try to uninstall the application and re-install , you will see the
Refreshed token in the logcat.
Also check in firebase console that Anonymous sign-in status is
Enabled or not in Authentication menu -> Sign in method

How do you prevent android apps from crashing when you have many activities?

I'm new to android and am making an app which features many activities and a user prefs get edited during almost every one, and it seems that it randomly starts crashing 6 or 7 activities in, and opening up a different activity from a couple of pages ago, but only sometimes. I do everything exactly the same each time and I don't know what causes it to crash. Usually it will crash back to a different intent and let me continue from there. Here is the logcat after a crash:
10-31 13:01:52.122 2542-2542/? I/art: Not late-enabling -Xcheck:jni (already on)
10-31 13:01:52.253 2542-2542/? I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23$1>
10-31 13:01:52.253 2542-2542/? I/art: Rejecting re-init on previously-failed class java.lang.Class<android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23$1>
10-31 13:01:52.360 2542-2542/? W/art: Before Android 4.1, method int android.support.v7.internal.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
10-31 13:01:52.516 2542-2558/? D/OpenGLRenderer: Render dirty regions requested: true
10-31 13:01:52.517 2542-2542/? D/: HostConnection::get() New Host Connection established 0xa66e01b0, tid 2542
10-31 13:01:52.522 2542-2542/? D/Atlas: Validating map...
10-31 13:01:52.569 2542-2558/? D/: HostConnection::get() New Host Connection established 0xa66e0260, tid 2558
10-31 13:01:52.578 2542-2558/? I/OpenGLRenderer: Initialized EGL, version 1.4
10-31 13:01:52.592 2542-2558/? D/OpenGLRenderer: Enabling debug mode 0
10-31 13:01:52.602 2542-2558/? W/EGL_emulation: eglSurfaceAttrib not implemented
10-31 13:01:52.602 2542-2558/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa66b4b20, error=EGL_SUCCESS

Android application starts on emulator but does not respond

Everything was working fine yesterday and today, my application does not respond on the emulator! It's driving me crazy as I have done nothing different or made any changes apart from updating Android Studio and I do not know if that's the cause. The app launches on the emulator but it keeps flickering on and off. Other apps work fine.
My logcat output gives me this and doesn't stop!:
--------- beginning of system
08-28 14:29:16.772 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:16.772 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa370ae00, error=EGL_SUCCESS
08-28 14:29:16.890 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.009 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.009 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa28cad20, error=EGL_SUCCESS
08-28 14:29:17.233 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.312 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.312 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa29a7b60, error=EGL_SUCCESS
08-28 14:29:17.382 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.529 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.529 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa29a7b40, error=EGL_SUCCESS
08-28 14:29:17.839 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:17.883 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:17.883 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2a98dc0, error=EGL_SUCCESS
08-28 14:29:17.926 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.097 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.097 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2a98da0, error=EGL_SUCCESS
08-28 14:29:18.282 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.339 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.339 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2ba3480, error=EGL_SUCCESS
08-28 14:29:18.539 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.628 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.628 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa327f3a0, error=EGL_SUCCESS
08-28 14:29:18.674 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:18.840 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:18.840 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa327f380, error=EGL_SUCCESS
08-28 14:29:19.136 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.195 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.195 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa250aa40, error=EGL_SUCCESS
08-28 14:29:19.323 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.543 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.543 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa25843a0, error=EGL_SUCCESS
08-28 14:29:19.657 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:19.840 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:19.840 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa25f0600, error=EGL_SUCCESS
08-28 14:29:20.047 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.191 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.191 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2601260, error=EGL_SUCCESS
08-28 14:29:20.398 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.461 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.461 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa243a740, error=EGL_SUCCESS
08-28 14:29:20.667 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:20.771 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:20.771 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa24477e0, error=EGL_SUCCESS
08-28 14:29:20.979 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
08-28 14:29:21.072 1997-2013/com.example.lysandroslysandrou.myapplication W/EGL_emulation﹕ eglSurfaceAttrib not implemented
08-28 14:29:21.072 1997-2013/com.example.lysandroslysandrou.myapplication W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa2447720, error=EGL_SUCCESS
08-28 14:29:21.264 1997-1997/com.example.lysandroslysandrou.myapplication I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.
And my console is this..:
emulator: device fd:784
HAXM is working and emulator runs in fast virt mode
emulator: warning: opening audio input failed
creating window 61 83 462 820
emulator: emulator window was out of view and was recentered
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not use program error=0x505
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
ColorBuffer::bindFbo: FBO not complete: 0x8cd6
draw: Could not run program: Ü
draw: Could not run program: à
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: ì
draw: Could not run program: î
draw: Could not run program: î
draw: Could not run program: î
draw: Could not run program: ð
draw: Could not run program: ð
ColorBuffer::bindFbo: FBO not complete: 0
draw: Could not run program: ò
These outputs don't stop!! Please any help will be appreciated..
If anything else is needed let me know!!
I don't have a solution to "solve" the problem, but what if you by-passed this by creating a new AVD and use it as default emulator?
Try to create another vm.
Check gradle version.
Reinstall api packages.
For future references, I've solved my problem by returning to an older version of my app and starting again from there. No matter how much research I have done, I didn't find a straight forward solution. Apparently this has to do with the OpenGLRenderer but I'm not sure in which way.
Best advice I can give is to make constant copies of your app at various stages in case something like this happens. In addition, always make sure you save your files before updating Android Studio because it can mess things up and be careful at what stage of your project you update it.
I myself found emulator extremely useless. Use real android device and then you know for sure if it works or not.

Android App says "Can't Play this video" when provided with link

I developed a small android app to which a link is provided and it just need to play that video.
But playback says "Can't play this video".
Can anyone help me with this.?
Main Activity Code:
public class MainActivity extends AppCompatActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final VideoView ramVV= (VideoView)findViewById(R.id.ramVV);
ramVV.setVideoPath("https://www.thenewboston.com/forum/project_files/006_testVideo.mp4");
ramVV.start();
}
}
logcat shows the following:
07-18 22:24:19.925 17364-17364/com.example.ram.videoplayer D/﹕ HostConnection::get() New Host Connection established 0xb3eb3e80, tid 17364
07-18 22:24:20.015 17364-17364/com.example.ram.videoplayer D/Atlas﹕ Validating map...
07-18 22:24:20.059 17364-17379/com.example.ram.videoplayer D/﹕ HostConnection::get() New Host Connection established 0xb3eb3fd0, tid 17379
07-18 22:24:20.076 17364-17379/com.example.ram.videoplayer I/OpenGLRenderer﹕ Initialized EGL, version 1.4
07-18 22:24:20.110 17364-17379/com.example.ram.videoplayer D/OpenGLRenderer﹕ Enabling debug mode 0
07-18 22:24:20.117 17364-17379/com.example.ram.videoplayer W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-18 22:24:20.117 17364-17379/com.example.ram.videoplayer W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3f1ec20, error=EGL_SUCCESS
07-18 22:24:20.167 17364-17364/com.example.ram.videoplayer D/MediaPlayer﹕ Couldn't open file on client side, trying server side
07-18 22:24:50.612 17364-17378/com.example.ram.videoplayer E/MediaPlayer﹕ error (1, -2147483648)
07-18 22:24:50.612 17364-17364/com.example.ram.videoplayer E/MediaPlayer﹕ Error (1,-2147483648)
07-18 22:24:50.612 17364-17364/com.example.ram.videoplayer D/VideoView﹕ Error: 1,-2147483648
07-18 22:24:50.703 17364-17379/com.example.ram.videoplayer W/EGL_emulation﹕ eglSurfaceAttrib not implemented
07-18 22:24:50.703 17364-17379/com.example.ram.videoplayer W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xb3feb960, error=EGL_SUCCESS
07-18 22:24:53.600 17364-17379/com.example.ram.videoplayer D/OpenGLRenderer﹕ endAllStagingAnimators on 0xa512fd80 (RippleDrawable) with handle 0xa51358f0
And I have also added permission in Manifest file.

Android Studio - Genymotion - Volley gets wrong url to download

I'm facing this really strange issue and I couldn't realize what's happening.
I have a login activity and when I try to make a request to validate the user information, I get this error in volley:
com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "teste.escolaemmovimento.com.br": No address associated with hostname.
This error only happens when I'm using the Genymotion emulator, I verify the URL field inside of the volley Request object right after create that and after insert the request in the volley queue and the correct url is there.
(when I test in the device this error does not happens.)
LogCat:
06-01 13:17:28.351 25469-25521/br.com.escolaemmovimento D/OpenGLRenderer﹕ Render dirty regions requested: true
06-01 13:17:28.362 25469-25469/br.com.escolaemmovimento D/﹕ HostConnection::get() New Host Connection established 0xabb84990, tid 25469
06-01 13:17:28.374 25469-25469/br.com.escolaemmovimento D/Atlas﹕ Validating map...
06-01 13:17:28.556 25469-25521/br.com.escolaemmovimento D/libEGL﹕ loaded /system/lib/egl/libEGL_emulation.so
06-01 13:17:28.557 25469-25521/br.com.escolaemmovimento D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_emulation.so
06-01 13:17:28.568 25469-25521/br.com.escolaemmovimento D/libEGL﹕ loaded /system/lib/egl/libGLESv2_emulation.so
06-01 13:17:28.578 25469-25521/br.com.escolaemmovimento D/﹕ HostConnection::get() New Host Connection established 0xaf60b940, tid 25521
06-01 13:17:28.604 25469-25521/br.com.escolaemmovimento I/OpenGLRenderer﹕ Initialized EGL, version 1.4
06-01 13:17:28.635 25469-25521/br.com.escolaemmovimento D/OpenGLRenderer﹕ Enabling debug mode 0
06-01 13:17:28.650 25469-25521/br.com.escolaemmovimento W/EGL_emulation﹕ eglSurfaceAttrib not implemented
06-01 13:17:28.651 25469-25521/br.com.escolaemmovimento W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xaf639400, error=EGL_SUCCESS
06-01 13:17:54.808 25469-25469/br.com.escolaemmovimento I/System.out﹕ com.android.volley.NoConnectionError: java.net.UnknownHostException: Unable to resolve host "teste.escolaemmovimento.com.br": No address associated with hostname
Anyone has already faced this issue? This is a problem only associate with the emulator? Thanks for any help.
UnknownHostException is thrown to indicate that the IP address of a host could not be determined. Make sure you have internet access inside of Genymotion.

Categories

Resources