Android 工作室问题:找不到 ads:AdQuality:unspecified

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

我已经更新了 Android 工作室并刚刚打开我的项目,但出现以下错误。你能告诉我如何解决这个问题吗?

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

该问题已在最新的 Audience Network 中修复。

您需要在 build.gradle

中更新此依赖项
compile 'com.facebook.android:audience-network-sdk:4.12.0@aar'

会自动获取最新的

问题是由于 Facebook 更新了 Maven 存储库中的 Audience Network SDK 版本 4.12.0 并最终引入了这个问题,这与您更新 Android Studio 的版本无关你正在使用。我昨天开始看到这个错误,我今天检查发现 maven.org audience-network-sdk 的 "Updated" 日期已更改为 20-May-2016。

Maven 存储库存在一些问题,您有 2 个选择,您可以手动下载 facebook sdk 或改回旧版本的观众网络

目前 sdk 版本 4.11 工作正常

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

您需要将依赖项更改为:

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