Error:(66, 30) error: package PhoneAuthProvider does not exist
This is my app build.gradle
P.S multidex enabled is true
Why this error happens?
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2',
{
exclude group: 'com.android.support', module: 'support-annotations'
})
// this line must be included to integrate with Firebase
compile 'com.google.firebase:firebase-core:10.2.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.google.firebase:firebase-storage:10.2.0'
compile 'com.google.firebase:firebase-database:10.2.0'
compile 'com.google.firebase:firebase-messaging:10.2.0'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.koushikdutta.ion:ion:2.+'
compile 'com.github.barteksc:android-pdf-viewer:2.5.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.kenglxn.QRGen:android:2.2.0'
compile 'me.dm7.barcodescanner:zxing:1.9'
compile 'com.google.zxing:core:3.2.1'
compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.1'
compile 'com.afollestad.material-dialogs:core:0.9.4.5'
compile 'com.github.clans:fab:1.6.2'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.github.chrisbanes:PhotoView:2.0.0'
compile 'me.grantland:autofittextview:0.2.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.theneura:android-sdk:+'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
Use :
compile 'com.google.android.gms:play-services-auth:11.0.2'
Instead of :
compile 'com.google.android.gms:play-services-auth:10.2.0'
the phone authentication was released with Firebase Android SDK v11 you need to update your auth module to 11.0.2 instead of 10.2.0
Related
I has problem when build app via Gradle as below. And I got the error:
Error:(516) Attribute "font" already defined with incompatible format.
Error:(298) Original attribute defined here.
Error:(516) Attribute "font" already defined with incompatible format.
Error:(298) Original attribute defined here.
But I don't find places using "font" attr in my modules.
Please help me on that.
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.3-alpha', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile('com.weiwangcn.betterspinner:library-material:1.1.0') {
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.rengwuxian.materialedittext', module: 'library'
}
compile('com.quickblox:quickblox-android-sdk-chat:2.6.1#aar') {
transitive = true
}
compile('com.crashlytics.sdk.android:crashlytics:2.6.7#aar') {
transitive = true;
compile 'com.stripe:stripe-android:+'
}
compile('com.crashlytics.sdk.android:answers:1.3.9#aar') {
transitive = true;
}
compile 'com.quickblox:quickblox-android-sdk-core:2.6.1#aar'
compile 'com.quickblox:quickblox-android-sdk-content:2.6.1#aar'
compile 'com.quickblox:quickblox-android-sdk-messages:2.6.1#aar'
compile 'com.android.support:appcompat-v7:26.0.1'
compile 'com.android.support:design:26.0.1'
compile 'com.android.support:cardview-v7:26.0.1'
compile 'com.android.support:recyclerview-v7:26.0.1'
compile 'com.android.support:leanback-v17:26.0.1'
compile 'com.android.support:customtabs:26.0.1'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.daimajia.swipelayout:library:1.2.0'
compile 'ayar.oktay.library:advancedtextview:0.4.5'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'jp.wasabeef:recyclerview-animators:2.2.4'
compile 'com.crystal:crystalrangeseekbar:1.1.1'
compile 'com.kyleduo.switchbutton:library:1.4.4'
compile 'me.relex:circleindicator:1.2.1#aar'
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.squareup.retrofit2:retrofit:2.2.0'
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
compile 'com.facebook.android:facebook-android-sdk:4.+'
compile 'com.android.support:multidex:1.0.1'
compile 'com.yalantis:ucrop:2.2.0'
compile 'com.yalantis:ucrop:2.2.0-native'
compile 'pub.devrel:easypermissions:0.1.9'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.android.gms:play-services-gcm:11.0.4'
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
compile 'com.google.dagger:dagger:2.8'
annotationProcessor 'com.google.dagger:dagger-compiler:2.8'
debugAnnotationProcessor 'com.google.dagger:dagger-compiler:2.8'
compile 'io.reactivex:rxjava:1.2.2'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'com.squareup.retrofit2:adapter-rxjava:2.2.0'
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
}
apply plugin: 'com.google.gms.google-services'
In my case the problem was in a library that defined attribute "app:font".
I removed that library and all the places in xml where were written "app:font" and my problem disappeared.
As an additional example:
If you have got the error AAPT: Attribute "iconTint" already defined with incompatible format then you should search and delete "app:iconTint" in your xml to resolve this problem.
My Android project build success with Android Studio 2.3, but on Android Studio 3.0.0-alpha7, it throws this exception:
:app:transformClassesWithJarMergingForStagingDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForStagingDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/facebook/R$attr.class
There is only 1 library that working with Facebook and declare Facebook SDK inside:
compile('ly.kite:facebook-photo-picker:1.2.0') {
exclude group: 'com.facebook.android', module: 'facebook-android-sdk'
}
Is this problem of Android Studio or Library?
*Update: * This is entire dependencies in the project:
dependencies {
provided fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:multidex:1.0.1'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'
compile 'com.amazonaws:aws-android-sdk-core:2.2.13'
compile 'com.amazonaws:aws-android-sdk-mobileanalytics:2.2.13'
compile 'com.amazonaws:aws-android-sdk-s3:2.2.13'
compile 'com.isseiaoki:simplecropview:1.1.4'
compile 'com.jpardogo.materialtabstrip:library:1.1.0'
compile('com.crashlytics.sdk.android:crashlytics:2.6.8#aar') {
transitive = true;
}
compile 'com.daasuu:animateHorizontalProgressBar:0.2.0'
compile 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
compile 'com.makeramen:roundedimageview:2.2.1'
provided files('libs/isoviewer-1.0-RC-28.jar')
provided files('libs/gcm.jar')
compile 'com.skyfishjy.ripplebackground:library:1.0.1'
compile 'com.ms-square:expandableTextView:0.1.4'
compile 'net.lingala.zip4j:zip4j:1.3.2'
compile 'com.apptentive:apptentive-android:3.0.0'
compile 'org.lucasr.twowayview:twowayview:0.1.4'
compile 'com.github.delight-im:Android-SimpleLocation:v1.0.1'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.daimajia.swipelayout:library:1.2.0#aar'
compile 'com.github.alex-townsend:SwipeOpenItemTouchHelper:1.2.0'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.pusher:pusher-java-client:0.3.3'
compile 'com.google.code.gson:gson:2.7'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
// compile 'com.github.boxme:squarecamera:1.1.0'
compile "com.daimajia.swipelayout:library:1.2.0#aar"
compile 'com.daimajia.androidanimations:library:1.1.2#aar'
compile 'jp.wasabeef:recyclerview-animators:2.1.0'
compile 'com.github.lamydev:android-notification:3.0'
compile 'com.afollestad:material-camera:0.2.14'
compile 'at.blogc:expandabletextview:1.0.3'
compile 'com.commonsware.cwac:cam2:0.6.6'
compile 'com.squareup.moshi:moshi:1.2.0'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.google.android.gms:play-services-gcm:11.0.2'
compile 'org.slf4j:slf4j-api:1.7.13'
compile 'com.github.tony19:logback-android-core:1.1.1-4'
compile 'com.github.tony19:logback-android-classic:1.1.1-4'
compile('com.papertrailapp:logback-syslog4j:1.0.0') {
exclude group: 'ch.qos.logback'
}
compile 'com.github.darsh2:MultipleImageSelect:3474549'
compile "com.mixpanel.android:mixpanel-android:4.9.8"
compile 'com.intuit.sdp:sdp-android:1.0.4'
// compile "com.google.android.gms:play-services:7.5.0+"
compile('com.crashlytics.sdk.android:crashlytics-ndk:1.1.6#aar') {
transitive = true
}
compile 'net.yazeed44.imagepicker:imagepicker:1.3.0'
compile 'com.github.IHNEL:android-media-picker:git_hub-SNAPSHOT'
compile 'me.amiee:nicetab:1.0.0'
compile 'io.github.rockerhieu:emojicon:1.4.0'
compile 'com.jeremyfeinstein.slidingmenu:library:1.3#aar'
compile 'com.facebook.android:facebook-android-sdk:4.18.0'
compile('ly.kite:facebook-photo-picker:1.2.0') {
exclude group: 'com.facebook.android', module: 'facebook-android-sdk'
}
compile 'com.github.IHNEL:android-oauth2-client:-SNAPSHOT'
compile 'com.github.IHNEL:emojicon:-SNAPSHOT'
}
I am getting this error while I try to run my Android Application,
I have used Reside Menu as merge into my Application (not by Gradle dependency) and then I am trying to integrate a payment gateway but while using a payment gateway I have to import ".aar" package.
After successfully importing, when I try to run my application at that time I got this error of library "nineoldandroids". I think this error triggered because one of the my gradle plugin is also using the same library.
Please take a look of my gradle :-
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile project(':cal_library')
compile project(':mobicomkitui')
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
compile 'com.jakewharton:butterknife:8.4.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.google.android.gms:play-services-maps:10.0.1'
compile 'com.makeramen:roundedimageview:2.3.0'
compile 'com.droidninja:filepicker:2.0.3'
compile 'com.rengwuxian.materialedittext:library:2.1.4'
compile 'com.squareup.picasso:picasso:2.5.0'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.leavjenn.smoothdaterangepicker:library:0.2.0'
compile 'com.github.skydoves:elasticviews:1.0.6'
compile 'com.squareup.retrofit2:converter-gson:2.0.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.github.johnpersano:supertoasts:1.3.4#aar'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
testCompile 'junit:junit:4.12'
apt 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'com.weiwangcn.betterspinner:library-material:1.1.0'
compile 'com.yalantis:ucrop:2.2.0'
compile 'com.onesignal:OneSignal:3.+#aar'
compile 'com.google.android.gms:play-services-gcm:10.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.j256.ormlite:ormlite-android:5.0'
compile 'com.j256.ormlite:ormlite-core:5.0'
compile 'com.github.kayvannj:PermissionUtils:1.0.2#aar'
}
So what could be the problem ?
My app rejected from Google Play because of OpenSSL Vulnerability. I don't specially use OpenSSL and I can't figure out which one of these dependencies causes the problem.
I am building on Windows 10.
dependencies {
compile 'com.android.support:multidex:1.0.1'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile group: 'cz.msebera.android', name: 'httpclient', version: '4.4.1.1'
compile('com.github.ozodrukh:CircularReveal:1.3.1#aar') {
transitive = true;
}
compile group: 'org.bytedeco', name: 'javacv', version: '1.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'com.github.nkzawa:socket.io-client:0.3.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.daimajia.swipelayout:library:1.2.0#aar'
compile 'com.google.android.gms:play-services-appindexing:9.4.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'net.ypresto.qtfaststartjava:qtfaststart:0.1.0'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
}
I'm using multi library which they are installed by Gradle on my appliaction, after opening application each time i get simple delay on opening application such as 10 second :| if i download libraries instead of using and installing by Gradle, that cause of speed up my application or not?
My Gradle
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.6'
compile 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-design:0.4.0'
compile 'com.jakewharton:butterknife:8.2.1'
apt 'com.jakewharton:butterknife-compiler:8.2.1'
compile 'frankiesardo:icepick:3.2.0'
provided 'frankiesardo:icepick-processor:3.2.0'
compile('io.socket:socket.io-client:0.7.0') {
exclude group: "org.json", module: "json"
}
compile 'com.google.code.gson:gson:2.6.2'
compile 'com.github.devlight.navigationtabbar:library:+'
compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.2.2'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.github.chyrta:AndroidOnboarder:+'
compile 'com.github.lamydev:android-notification:3.0'
compile 'com.koushikdutta.ion:ion:2.+'
compile 'com.bugsnag:bugsnag-android:+'
compile 'com.github.liuguangqiang.swipeback:library:1.0.2#aar'
compile 'com.wunderlist:sliding-layer:1.2.5'
compile 'com.facebook.rebound:rebound:0.3.8'
compile 'com.tumblr:backboard:0.1.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.jaredrummler:android-device-names:1.0.9'
compile 'org.sufficientlysecure:html-textview:1.6'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.2'
compile 'com.kogitune:pre-lollipop-activity-transition:1.3.0'
compile 'org.greenrobot:eventbus:3.0.0'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.alexvasilkov:foldable-layout:1.2.0'
compile 'com.mikhaellopez:circularfillableloaders:1.2.0'
compile 'cat.ereza:customactivityoncrash:1.5.0'
compile 'jp.wasabeef:glide-transformations:2.0.1'
compile 'com.github.hotchemi:permissionsdispatcher:2.1.3'
apt 'com.github.hotchemi:permissionsdispatcher-processor:2.1.3'
compile 'com.github.goka.flickableview:flickableview:1.0.0'
compile 'com.github.Kennyc1012:BottomSheet:2.1.2'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile('com.github.ozodrukh:CircularReveal:2.0.1#aar') {
transitive = true;
}
compile project(':lib-searchview')
}
No because gradle saves them locally, you can go to your gradle.properties and set these values and enable the gradle to use more of your machine compute power.
-Xms4096m
-Xmx4096m
-XX:MaxPermSize=2048m
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+HeapDumpOnOutOfMemoryError
-Dfile.encoding=utf-8