Why my AIDE not downloading Google Firebase libraries? - android

I am using android AIDE app to make android application. Before i factory reset my android, I have all google, android & firebase libraries are downloaded & installed. But after factory reset, when i install again AIDE app, It download only google & firebase library. And when i put firebase dependency in build gradle, it not downloading firebase library for me. Please help me in these case.
Here's my build gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.0"
defaultConfig {
applicationId "com.rb.aagrikoli"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}}
dependencies {
compile 'com.google.android.gms:play-services-ads:+'
compile 'com.google.firebase:firebase-auth:+'
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:support-v4:+'
compile 'com.android.support:appcompat-v7:+'
compile 'com.roughike:bottom-bar:2.3.1'
compile 'com.github.bumptech.glide:glide:4.7.1'
compile fileTree(dir: 'libs', include: ['*.jar'])
}
apply plugin: 'com.google.gms.google-services'

You should use the latest versions of all library in your gradle file
try to replace all the library accourding to your target SDK
Also change the compileSdkVersion 21
buildToolsVersion "21.1.0" to 25(same with target sdk)

Related

Cannot resolve method: CameraSource.Builder.setAutoFocusEnabled

I use Vision API to scan barcode. It's almost done, except auto-focus. I follow the guide in this link: https://developers.google.com/android/reference/com/google/android/gms/vision/CameraSource.Builder, use setAutoFocusEnabled method and get an error: "Cannot resolve method 'setAutoFocusEnabled(boolean)'"
My Android studio version: 2.1.1
JRE: 1.8.0
file build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "***"
minSdkVersion 17
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'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services:7.8+'
}
You are reading newer documentation than the library you are using.
If you want the newer features, then upgrade.
Replace com.google.android.gms:play-services:7.8+
With com.google.android.gms:play-services-vision:10.0.0, or some other, later version than 7.8.
See about selective compilation. It will make your app smaller, and build faster.

How can I compile the older version of google play service in Android Studio?

I had tried the new version(8.4.0) of google play service in my application. This had successful to run.
But I want to compile the older google play service.
When I change the version in Android Studio, it cannot sync successful.
How can I compile the correct older google play service. I want to compile version at lease 6.0.5.
Thank you!
Here is the build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.example.tina.releasemap"
minSdkVersion 15
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'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services:6.5.87'
}
You cannot select just a random version of play-services and hope it'll work. The only versions you can select from are the ones you've installed through Android SDK Manager inside your IDE.
To check which versions you have, you need to check your SDK dir. More information here.

Android Studio - Error: Android Source Generator: Android SDK is not specifed

I'm getting "Error: Android Source Generator:[app_name] Android SDK is not specifed" in Android Studio while trying to Build Project.
I have Android Studio 1.0.2 RC4 version.
What have been done:
SDK installed ith SDK Manager
Project Structure -> SDK; I have added there minimum and target SDK as well
updated build.gradle
build.gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.byoutline.pinafood"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.squareup.retrofit:retrofit:1.6.1'
compile 'com.etsy.android.grid:library:1.0.5'
compile 'org.glassfish:javax.annotation:3.1.1'
compile 'com.squareup:otto:1.3.5'
compile 'com.squareup.picasso:picasso:2.3.4'
compile 'com.squareup.dagger:dagger:1.2.2'
provided 'com.squareup.dagger:dagger-compiler:1.2.1'
compile 'com.jakewharton.hugo:hugo-runtime:1.1.0'
compile 'com.jakewharton.timber:timber:2.4.+'
}
Go to Project Structure->SDK Location and make sure the path is set correctly.
Okay, so I had to upated build:gradle to 1.0.0 (only by changing those number in build.gradle file and change from runProguard to minifyEnabled.

Using Google Maps API in Android Studio

Hey guys I've installed the SDK for google play services and have added the dependancies however I still get the error:
Failed to find: com.google.android.gms:play-services-maps:6.5+
Is there something I'm missing?
Heres my dependencies file:
apply plugin: 'com.android.application'
apply plugin: 'android'
android {
compileSdkVersion 21
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "team08.httpapp"
minSdkVersion 17
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:6.5.+'
compile 'com.google.android.gms:play-services-maps:6.5.+'
}
Make sure the "Google Repository" is installed in your SDK manager.
Based on this Google blog post:
http://android-developers.blogspot.co.at/2014/12/google-play-services-and-dex-method.html
I would remove compile 'com.google.android.gms:play-services:6.5.+' and change the other line to compile 'com.google.android.gms:play-services-maps:6.5.87'.

Android studio : Error : Module version com.android.support:support-v13:13.0.0 depends on libraries but is not a library itself

I try to add this lib (https://github.com/daimajia/AndroidImageSlider) to my project. I added the compile library in my gradle file, but i get an error :
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
applicationId "com.pp.myapp"
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.2'
compile 'com.iangclifton.android:floatlabel:1.0'
compile 'com.google.android.gms:play-services:5.0.89'
compile "com.android.support:support-v4:+"
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.0.9#aar'
}
And i get this error :
Error:Module version com.android.support:support-v13:13.0.0 depends on libraries but is not a library itself
Try adding this dependency:
compile 'com.android.support:support-v13:19.0.+'
You have to install the Android Support Library from the SDK, too.
I got the same error with an oauth library. It was fixed after a while when, tired of implementing new changes to the build.gradle like changing the support libraries, I discarded the changes on the file (via Sourcetree). It synchronized and automatically got fixed.
(Android Studio) It's a kind of magic.

Categories

Resources