Facebook Audience Network doesn't resolve - android

I have the facebook audience network dependency in my list of dependencies. It used to work, but it stopped resolving for no discernible reason.
compile 'com.facebook.android:audience-network-sdk:4.+'
I'm not in offline mode.
EDIT:
Changing the build variant gives a more descriptive error message.

I have a feeling they've pulled that version. For now fall back on the previous version:
compile 'com.facebook.android:audience-network-sdk:4.13.0'

There was a problem with the POM file. Version 4.14.1 has been deployed with the fix. So you can now go ahead and use the latest version via gradle. Specifying 4.+ will automatically use the 4.14.1 version.

Related

com.google.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 19.0.0

Recently my ionic project build stuck below this issue
com.google.firebase:firebase-iid is being requested by various other libraries at [[17.1.1,17.1.1]], but resolves to 19.0.0
This is not the first time I came across this issue whenevr google update the firebase version I always stuck with similar kind of issue. I googled it every time and some how find the solution. but this time its too difficult to get rid of this.
any one has any idea?
I have faced the same issue after changing firebase-message library version issue resolved.
implementation "com.google.firebase:firebase-messaging:17.3.3"
Try updating google services to latest version in your apps Top-level build file. As of now latest version is as below:-
classpath 'com.google.gms:google-services:4.2.0'

there is something wrong with my appcompat version

I don't really understand why my appcompat version is not accepted
Please help
click to see image
This is a warning, your app will still run.
One or more of your transitive dependencies is requesting different version of of the Android Support Library that you are not requesting directly yourself, resulting in this conflict. You will need to run a Gradle dependency report and find out what is causing the problem, then manually request those artifacts yourself with your desired version (presently, 27.0.1).
I think in your case facebook is using old version, you should try updating facebook dependency version to latest.
You can see this answer as well.
You have probabelly some libraries that use older versions of some others support libraries (not especially AppCompat), so you have to override them manually in the gradle to get rid of this warning.
You have to repeat this until the warning disapear :
When you see the hint, copy and past the library and update the version number : for example if in the hint you have
"blablabla... example include blablabla...
com.android.support:support-core-ui:26.0.1"
Add this to the dependencies section of the build.gradle script :
implementation 'com.android.support:support-core-ui:27.1.1'

Android studio automatically tries to update libraries?

In my project I have many libraries defined in dependencies section in gradle. Problem is once in a while (once/twice a day)Android Studio gives me errors like this when opening the project or trying to get a release output:
Error:Unable to resolve dependency for ':TMessagesProj#armv7Debug/compileClasspath': Could not resolve com.google.android.gms:play-services-gcm:11.2.+.
My guess is it is because build tools is trying to check if there is an update for each library and when it doesn't find an Internet connection, it shows this error. If so, how can I change the setting in a way it doesn't have to check for updates? In other words in my project I don't need to update my libraries.
I know there is an offline mode that will probably do the trick! But I don't want to use this feature because it will probably disable some other useful features too. I just want to prevent it from automatically checking for library updates(If that's the problem shown above).
I included some part of my dependencies in gradle here:
dependencies {
compile 'com.google.android.gms:play-services-gcm:11.2.+'
compile 'com.google.android.gms:play-services-maps:11.2.+'
compile 'com.google.android.gms:play-services-vision:11.2.+'
compile 'com.google.android.gms:play-services-wallet:11.2.+'
}
Dependencies with a plus like 11.2.+' will always lead to repeated builds.
You have to specify the full version like:
com.google.android.gms:play-services-gcm:11.2.0
If you do not specify gradle will always be building because its looking for the latest version online of 11.2.+ may be 11.2.4, 11.2.6 etc

Android Studio 'Obsolete Gradle Dependency' inspection issue

I have following gradle dependencies in my Android build.gradle file.
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
Declared versions are the current latest stable versions of these libraries(android support library). But Android Studio displays following warning on them.
A newer version of exists than 23.2.1 is available:
24.0.0-alpha1
24.0.0-alpha1 seems to be the newly released developer preview and I don't want to take them as a stable version of libraries. I can suppress or disable this inspection and get rid of the warnings. But doing so will avoid valid future warnings as well.
How can git rid of this warning for the developer previews?. The warning should appear only if valid new stable version of the library exists.
I use Android studio 1.5.1Thanks in advance
Guys from Google has already fixed it, so all that you need to do now is to wait for the next update.
This problem has already been reported here:
https://code.google.com/p/android/issues/detail?id=203321

installing repository for com.android.support.recyclerview-v7 for Android Studio error

I'm a beginner in android studio and I try to use a recyclerView. When I try to add compile 'com.android.support.recyclerview-v7:21.0.+' to my gradle file, I get the error:
failed to resolve com.android.support.receyclerview-v7v7:21.0.+.
It proposes me to install repository and sync project. when I click it, i get this error:
SDK Path C:\User\userName\AppData\Local\Android\sdk1
loading SDK information
ignoring unknown package filter 'extra-android-m2repository' warning: The package filter removed all packages. There is nothing to install. Please consider trying to update again without a package filter.
install failed, please check your network connection and try again. You may continue with creating your project, but it will not compile correctly without the missing components.
I mention that I'm using sdk 23.0.0 on a windows system, and when installing android studio for the first time I got an error message that concern proxy (that i unfortunately skipped)!!
Any idea to solve this problem ??!!!
First of all, run the SDK Manager and check if your support libraries repository is updated.
Then open your build.gradle (not the top level file) and add:
dependencies{
//....
compile 'com.android.support:recyclerview-v7:23.0.0'
}
Pay attention. You report in your question a typo in your library (compile 'com.android.support.recyclerview-v7:21.0.+')
Using the v23 you have to compile with API23.
Of course you can use a "old" version using:
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:21.1.3'

Categories

Resources