googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.92k stars 1.73k forks source link

Bug: doesn't work on stock (vanilla) Nexus 5 #95

Open AndroidDeveloperLB opened 8 years ago

AndroidDeveloperLB commented 8 years ago

Android 6.0.1, MOB30H

running the sample "photo-demo" , it just shows this in the logs:

05-18 12:24:56.710 3280-3280/com.google.android.gms.samples.vision.face.photo W/FaceDetectorHandle: Native face detector not yet available.  Reverting to no-op detection.
05-18 12:24:57.028 3280-3280/com.google.android.gms.samples.vision.face.photo W/PhotoViewerActivity: Face detector dependencies are not yet available.

I tried updating everything, and change the gradle file to this:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"

    defaultConfig {
        applicationId "com.google.android.gms.samples.vision.face.photo"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.android.gms:play-services:8.4.0'
}

But it didn't help. Running the exact same project on Nexus 5x with Android 6.0.1 actually does work.

How could this be?

mbg1 commented 8 years ago

There is a known issue with the new version of GMSCore (v9) that was just released today. From the release notes:

AndroidDeveloperLB commented 8 years ago

Even though I don't use it still, what would have happened if I made an app, say, 2 months ago, that uses this ? Wouldn't this mean that now it won't be able to use this API, and fail for all users with this bug? How could it be that you update the version , before checking it on Nexus devices...

ggirard07 commented 8 years ago

@mbg1 Do you have at least any time frame for fixing this issue? I mean, Are we speaking about days, weeks, months? I have started a project a few weeks ago with your API and it scares me a bit, especially as GMS did not receive any update in last months (I mean I hope we will not wait as long for a fix to this...)

mbg1 commented 8 years ago

We are working to correct the problem as soon as possible. We expect it will take several weeks to test it thoroughly.

pm0733464 commented 8 years ago

See this issue.

vbuberen commented 8 years ago

@AndroidDeveloperLB Looks like you have the same porblem I had a few months ago on Nexus 5x See https://github.com/googlesamples/android-vision/issues/63

mohib-irshad-10p commented 8 years ago

@mbg1 Can you update its current status? Yesterday, on factory resetting the device, the application downloaded the mobile vision api and started working. I was using Moto G (XT1031) running android 4.4.4 updated to Google Play Services 9.0.82. Also this downloaded on emulators as well.

However on Moto X (XT1060) running android 5.1 is not downloading no matter what the version of play services is. Tried on the following versions:

Can you please explain why is this working on moto g and emulators ?

aftabsikander commented 7 years ago

I believe this is fixed with latest release. Correct me if I am wrong. Google Play services 9.2