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'
}
Related
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
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'
}
After add isoparser-1.0.6.jar into lib folder, I got error something like this
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/coremedia/iso/AbstractBoxParser$1.class
And this is my gradle:
dependencies {
compile 'com.android.support:multidex:1.0.1'
testCompile 'junit:junit:4.12'
compile files('libs/vdopialwsdk.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/httpmime-4.4-beta1.jar')
compile files('libs/httpcore-4.4.jar')
compile files('libs/isoparser-1.0.6.jar')
compile files('libs/android-websockets-master.jar')
compile files('libs/zcsprinterV.jar')
compile project(':library')
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.android.support:gridlayout-v7:23.3.0'
compile 'com.android.support:cardview-v7:23.3.0'
compile 'com.android.support:palette-v7:23.3.0'
compile 'com.android.support:recyclerview-v7:23.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.github.quentin7b:android-location-tracker:3.2'
compile group: 'org.igniterealtime.smack', name: 'smack-resolver-minidns', version: '4.1.7'
compile group: 'org.igniterealtime.smack', name: 'smack-extensions', version: '4.1.7'
compile group: 'org.igniterealtime.smack', name: 'smack-tcp', version: '4.1.7'
compile group: 'org.igniterealtime.smack', name: 'smack-legacy', version: '4.1.7'
compile group: 'org.igniterealtime.smack', name: 'smack-sasl-provided', version: '4.1.7'
compile group: 'org.igniterealtime.smack', name: 'smack-android', version: '4.1.7'
compile "org.igniterealtime.smack:smack-bosh:4.1.7"
compile 'com.rockerhieu.emojicon:library:1.3.1'
compile 'com.soundcloud.android:android-crop:1.0.0#aar'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.github.clans:fab:1.6.1'
compile 'com.android.support:customtabs:23.1.0'
compile 'com.github.ozodrukh:CircularReveal:1.1.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.github.PhilJay:MPAndroidChart:v2.2.0'
compile 'com.newrelic.agent.android:android-agent:5.+'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:palette-v7:23.1.0'
compile 'org.jetbrains:annotations:13.0'
compile 'jp.wasabeef:glide-transformations:1.2.1'
compile 'jp.co.cyberagent.android.gpuimage:gpuimage-library:1.3.0'
compile 'com.joooonho:selectableroundedimageview:1.0.1'
compile 'de.greenrobot:androidsvg:1.2.2-beta-1-tweaked-2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'com.squareup.okhttp:okhttp-urlconnection:2.5.0'
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.github.aakira:expandable-layout:1.6.0#aar'
compile 'jp.wasabeef:picasso-transformations:2.1.0'
compile 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'
compile 'com.github.ybq:Endless-RecyclerView:1.0.3'
compile 'life.knowledge4:k4l-video-trimmer:1.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'org.aspectj:aspectjrt:1.8.5'
}
So, how to fix it?
Best Regards..
After a long head-pain I finally solved the problem. as you mentioned the reason is isoparser. so please add this to your build.gradle(Module:app)
compile('life.knowledge4:k4l-video-trimmer:1.1.3-SNAPSHOT') {
exclude group: 'com.googlecode.mp4parser', module: 'isoparser'
}
Problem solved! Happy coding :)
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 ?
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