17

I'm new at Google Mobile Vision api and I've been using barcode detector class to detect barcodes. The app works fine but it does not work in my android 4.2.2 phone. I've updated the play services to v10.0.1 but still no good. When connected to android studio with debugger I get the message: 'local module descriptor class for com.google.android.gms.vision.dynamite not found'. I've tried the app in other android 4.2.2 device. It works, but for some reason it doesn't work in mine. Can anyone help me with the above error? Some libraries I'm missing perhaps?

Nik
  • 171
  • 1
  • 2
  • 8

7 Answers7

10

for me, the device doesn't have google-play-service. I just download (google-play-service) from Google Play Store and update software. (oppo)

Dharman
  • 30,962
  • 25
  • 85
  • 135
Warunee Khammak
  • 101
  • 1
  • 5
2

Free up some memory and you should be good to go.I was facing the same issue when I had around 800MB of free memory. I made it to 2GB and its working fine now.

Chinmoy Panda
  • 935
  • 8
  • 7
2

Problem is emulator. Because it doesn't have provider, you should connect custom phone or build apk then try on your phone.

Abdullah Z Khan
  • 1,272
  • 1
  • 8
  • 18
1

I had the Google play App disable, so i turned it enable and then i deleted my app data and it works for me.

1

implementation 'com.google.android.gms:play-services-vision:20.1.3'

Saurabh
  • 11
  • 3
  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jun 02 '23 at 11:27
  • The improved answer is to add this line to your `app > build.gradle > dependencies` – Pavel Jul 13 '23 at 01:03
0

I am also suffered with the same issue. I have resolved in the following way

Clear the app data from settings.

Its working for me.

source : https://github.com/googlesamples/android-vision/issues/164

Kona Suresh
  • 1,836
  • 1
  • 15
  • 25
0

In .NET MAUI I resolved this problem by replacing library:

Xamarin.GooglePlayServices.Ads.Lite

to

Xamarin.GooglePlayServices.Ads
Kebechet
  • 1,461
  • 15
  • 31