• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Unable to use Google Play Services Vision API

Valak19

Lurker
I am devloping an Android application in Eclipse which can scan Bar codes and QR codes.

I unzipped the google-play-services-vision aar file, renamed the classes.jar and added it to my project libs folder. The project code compiled but I got runtime errors saying NoClassDefFoundError. I think there is a mistake in linking.

I looked for ZXing. But for Zxing to work, the BarcodeScanner App has to be installed in the phone which I don't want. I want to scan the code in my app itself. So, I have to use Google Play Services Vision API.

So, can anybody send the correct jar file or tell me how to modify the properties of project to use the classes.jar?
 
Apologies on the oversight. But Android Studio is the officially recommended IDE for Android development.
As you are having obvious difficulties importing these services, then maybe your best course of action would be to migrate to using Android Studio, and it will make your life a lot easier.
 
Migrating to Android Studio will take a lot of time. Therefore I would like to implement the feature using Eclipse itself.
 
In the time you spend trying to manually resolve jar dependencies, you could probably have migrated to Android Studio. It even helps you to import Eclipse projects. All the build instructions for Google Play Services are for Android Studio, there is no guidance for Eclipse. Why don't you try importing your project to Android Studio? Worst case is it doesn't work, and you can continue trying to resolve your Eclipse problems.
 
Back
Top Bottom