Android studio Issue : Could not find ads:AdQualit

2020-07-11 07:15发布

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

4条回答
老娘就宠你
2楼-- · 2020-07-11 07:41

You need to change dependency to:

dependencies {
    ...
    compile 'com.facebook.android:audience-network-sdk:4.12.0@aar'
}
查看更多
▲ chillily
3楼-- · 2020-07-11 07:43

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.

查看更多
一夜七次
4楼-- · 2020-07-11 07:52

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.

查看更多
霸刀☆藐视天下
5楼-- · 2020-07-11 08:07

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'
查看更多
登录 后发表回答