How you can exclude compile file - android

I have used dropbox and box with my application.
But when i have used Dropbox with latest SDK then some classes conflict with Box SDK.
So i have found one solution by which you can exclude group and compile file.
compile('com.dropbox.core:dropbox-core-sdk:2.1.1') {
exclude group: 'com.fasterxml.jackson.core'//for Box
compile 'com.squareup.okhttp3:okhttp:3.3.1'// this for PayPal
}
Note:
By this all working well means 100%.

Related

Your app includes non compliant SDK version com.my.tracker:mytracker-sdk

I recently updated my Flutter app with Appodeal ads, later I got a message.
Google Play Console:
Your app **** version code *** includes SDK com.my.tracker:mytracker-sdk or an SDK that one of your libraries depends on, which collects personal or sensitive data that includes but may not be limited to Advertising ID, Android ID, Device Wifi MAC identifiers. Persistent device identifiers may not be linked to other personal and sensitive user data or resettable device identifiers as described in the User Data policy.
where can I find in my app SDK com.my.tracker:mytracker-sdk
app>build.gradle
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.firebase:firebase-analytics:21.1.1'
implementation ('com.appodeal.ads:sdk:3.0.0.+') {
exclude group: 'com.appodeal.ads.sdk.services', module: 'adjust'
exclude group: 'com.appodeal.ads.sdk.services', module: 'appsflyer'
exclude group: 'com.appodeal.ads.sdk.services', module: 'firebase'
exclude group: 'com.appodeal.ads.sdk.services', module: 'facebook_analytics'
}
implementation 'com.appodeal.ads.sdk.services:firebase:3.0.0.+'
}
How to make persistent device identifiers not be linked to other personal and sensitive user data or resettable device identifiers??
How should I resolve this problem. Do I really need to stop advertising (using appodeal)?
Message i got from Appodeal support. and it seems to work
Currently, MyTracker has released an updated version, 3.0.9, which
includes all necessary fixes and to update the MyTracker library,
please resync your dependencies file with all dependencies, and the
new MyTracker version will be downloaded automatically.
myTracker is included in the myTarget SDK, which is part of the Appodeal SDK.
Try to exclude the myTarget adapter in the build.gradle
exclude group: 'com.appodeal.ads.sdk.networks', module: 'my_target'
I did an update to version 3.0.9 instead an error occurred, then I changed it to 3.0.0.4 with normal success. Will this version 3.0.0.4 also still get SDK violation warnings from Google Play

Add Volley to android studio project manually, gradle offline [duplicate]

This question already has answers here:
How to download libraries in Android Studio?
(4 answers)
Closed 5 years ago.
I am just a student with a very very slow internet connection and laptop. My problem is most methods of adding volley to my android studio projects requires me to use gradle online mode so it can download it.
My problem is my internet connection is very slow, and my laptop is also not that fast therefore gradle offline mode is the only thing keeping my laptop from dying everytime I use android studio.
Is there any manual way of adding volley to my project or any alternative you may know of?
Please help me, I am just a student so I do not know much.
You can use this volley library
compile 'com.mcxiaoke.volley:library-aar:1.1.0'
Download Volley Jar File from here https://drive.google.com/file/d/0B2HGUM4c0YwpZFp2aUlnNjJvV2c/view
Steps to add Jar file in Android Studio :
Put the Volley jar (in my case, volley.jar) into the libs folder
Right click it and hit 'Add as library'
After Adding Check your build.gradle at app module, you get it added implementation files('libs/volley.jar')
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:26.+'
compile 'com.android.support:appcompat-v7:26.+'
testCompile 'junit:junit:4.12'
implementation files('libs/volley.jar')
}

Google play services raising the version of support-v4 (to 24.0.0)

In my project I'm compiling against sdk-version 23 and using the compat/support libraries version 23.2.0.
Now I'm trying to update the play-services-version from 9.2.1 to 10.2.0
compile 'com.google.android.gms:play-services-base:10.2.0'
But making this change ads the com.android.support:support-v4:24.0.0 library to my project making my project to crash due with strange not found errors in the compat libraries like explained in this question.
How can I avoid that? should I skip the play-services update? can I avoid them to raise the version of the support-v4 lib?
Maybe it could work with something like this:
compile('com.google.android.gms:play-services-base:10.2.0') {
exclude group: 'com.android.support'
}
or if this does not work then maybe:
compile('com.google.android.gms:play-services-base:10.2.0') {
exclude group: 'com.android.support', module: 'support-v4'
}
Or maybe you don't need the whole base play services and only specific packages as defined here

Android build.gradle - Libraries clashing

I am Developing an android application and using a library say A. and I have another library say B which internally uses A. Because of this, I get Duplicate zip entry error on my build. How do i exclude libraries from 3rd party libraries or how do i get around this issue?
You can exclude the modules you don't need from a dependency with exclude module:
compile (project(':B')) {
exclude module: 'A'
}

facebook Multiple dex files define without excluding support-v4

is there another solution for the "Multiple dex files define Landroid/support/annotation/AnimRes" error using Facebook SDK for android, besides excluding group: 'com.android.support', module: 'support-v4'4 in build.graddle?
When I do this, another SDK, for another service that I use, fails and shows me: "error inflating class android.support.v7.internal.widget.actionbaroverlaylayout"
So, can somebody point me to another workaround so I don't have to exclude group: 'com.android.support', module: 'support-v4' and that way I can use another SDK that I need too.
Have you tried this solution? Otherwise try the most voted one of that thread, this must be your solution for sure.

Categories

Resources