iappmaker
iappmaker

Reputation: 3005

Android studio Issue : Could not find ads:AdQuality:unspecified

I have updated the Android studio and just opened my project and I got the following error. Could you please let me know how to resolve this ?

Error:A problem occurred configuring project ':memoryGameCollectionFree'.
> Could not resolve all dependencies for configuration     ':memoryGameCollectionFree:_debugCompile'.
   > Could not find ads:AdQuality:unspecified.
 Searched in the following locations:
     file:/C:/Program Files/Android/Android Studio/gradle/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.pom
     file:/C:/Program Files/Android/Android Studio/gradle/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.jar
     https://jcenter.bintray.com/ads/AdQuality/unspecified/AdQuality-unspecified.pom
     https://jcenter.bintray.com/ads/AdQuality/unspecified/AdQuality-unspecified.jar
     https://repo1.maven.org/maven2/ads/AdQuality/unspecified/AdQuality-unspecified.pom
     https://repo1.maven.org/maven2/ads/AdQuality/unspecified/AdQuality-unspecified.jar
     file:/C:/Users/Sudhakar/AppData/Local/Android/sdk/extras/android/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.pom
     file:/C:/Users/Sudhakar/AppData/Local/Android/sdk/extras/android/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.jar
     file:/C:/Users/Sudhakar/AppData/Local/Android/sdk/extras/google/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.pom
     file:/C:/Users/Sudhakar/AppData/Local/Android/sdk/extras/google/m2repository/ads/AdQuality/unspecified/AdQuality-unspecified.jar
 Required by:
     MemoryGameCollectionFree:memoryGameCollectionFree:unspecified > com.facebook.android:audience-network-sdk:4.12.0

Upvotes: 8

Views: 1925

Answers (4)

Atiq
Atiq

Reputation: 14835

The Issue has been fixed in the latest Audience Network.

You need to update this dependency in build.gradle

compile 'com.facebook.android:audience-network-sdk:4.12.0@aar'

it will automatically get the latest one.

Upvotes: -1

TGIO
TGIO

Reputation: 543

You need to change dependency to:

dependencies {
    ...
    compile 'com.facebook.android:audience-network-sdk:4.12.0@aar'
}

Upvotes: 23

APP Bird
APP Bird

Reputation: 1381

there is some problem with Maven Repository you have 2 options either you can manually download facebook sdk or change back to older version of audience network

currently sdk version 4.11 works fine

  compile 'com.facebook.android:audience-network-sdk:4.11.0'

Upvotes: 1

Gordon
Gordon

Reputation: 311

The problem is due to the fact that Facebook updated version 4.12.0 of the Audience Network SDK that's in the Maven Repository and ended up introducing this problem, it's unrelated to you updating the version of Android Studio you're using. I started seeing this error yesterday and I checked today and found that on maven.org the "Updated" date for audience-network-sdk has changed to 20-May-2016.

Upvotes: 4

Related Questions