Add Google Mobile Vision library dependency to gradle - android

i want to add google mobile vision library by add this line to build.gradle :
compile 'com.google.android.gms:play-services-vision:11.6.0'
but android studio error!
what's wrong?

Try using different lib version. This works perfectly for me
compile 'com.google.android.gms:play-services-vision:9.4.0+'

Related

react native 0.69 project implementation dependancy not working inside plugin

I am working in 0.69.4 react native project and i integrate one plugin country picker https://www.npmjs.com/package/rn-weblineindia-country-code and I am getting error in Android version as below
Inside Gradle file code like as below
So How i can solve this error I refer this site which told that distributionURL above 7 we need to change compile to api or implementation so i did same but no solution work . Kindly help me out on this

Android Studio - Bibliotecas Github ZXing

Recently I started to venture into Android Studio, and one of the projects I'm working on requires a barcode reader, and a great solution I found was the ZXing library.
However, the following doubts arose:
To use this library I used the following commands:
compile 'com.google.zxing:core:3.2.1'
compile 'com.journeyapps:zxing-android-embedded:3.2.0#aar'
If the owner removes this library, will the next build of the application no longer have this library?
If not, would you have any way to work with it local / offline?
A compile directive works because the library is published in the maven central repo.
If you really want to secure that library, you would need to vendor it:
clone it in your own project
declare it as a module
Or: use the jitpack project, which allows you to reference a fork (your own GitHub copy) of the project in a compile directive.
See more at "How to compile forked library in Gradle?".

Android studio build gradle sync failed

I am trying to add google play service to my project but it gives me error when I try to edit build (Gradle).
How can I fix it?
In your configuration there some issues.
You are using the wrong build.gradle file.
It is your top-level file.
You should add this line in your app/build.gradle
There is a typo. You are missing the ' at the end of the line compile.
Use an updated version.
For example use:
apply plugin: 'com.android.application'
...
dependencies {
compile 'com.google.android.gms:play-services:8.1.0'
}
Finally refer this official doc for more info.
In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit.
For example if you need to make only your app aware of location updates add
compile 'com.google.android.gms:play-services-location:8.1.0' only in gradle or if you need only map choose compile 'com.google.android.gms:play-services-maps:8.1.0'.
Please replace
compile 'com.google.android.gms:play-services:3.1.36
with
compile 'com.google.android.gms:play-services:3.1.36'
One thing you can try is Right Click on app open module settings on Dependencies Tab click '+' icon and add there 'com.google.android.gms:play-services:8.1.0' and click search icon and add that dependency,
So i don't want to elaborate what you had done wrong as my colleagues figured it out.I like to say, while playing with Google Play Service
Selectively compile APIs into your executable
In versions of Google Play services prior to 6.5, you had to compile the entire package of APIs into your app. In some cases, doing so made it more difficult to keep the number of methods in your app (including framework APIs, library methods, and your own code) under the 65,536 limit.
For example if you need to make only your app aware of location
updates add compile
'com.google.android.gms:play-services-location:8.1.0' only in gradle
or if you need only map choose compile
'com.google.android.gms:play-services-maps:8.1.0'.
Thank you.
Visit for more.

How to Realm setup in Android

I am facing an error when including Realm API in to my Android project
Please provide instructions to set it up in Android studio.
make sure you have included
compile 'io.realm:realm-android:0.80.0'
under dependencies in your build.gradle file

Adding Spring for android dependency to gradle + Android studio project

Official Spring for Android page mentions to add following dependency code.
dependencies {
compile 'org.springframework.android:spring-android:1.0.1.RELEASE'
}
which is latest version of build as of this time.(as per website)
I have added it in apps' build.gradle but I get an error as
Error:Failed to find: org.springframework.android:spring-android:1.0.1.RELEASE
What is the right way to do it?
I could add google play services as dependency in the same way.
Here is the correct dependency for the Rest Template module. I've corrected this on the Spring for Android project page. Thank you very much for pointing out this error.
dependencies {
compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'
}
You can find correct and lastest version on spring site. Under the Quick Start title.
http://projects.spring.io/spring-android/

Categories

Resources