[英]Failed to resolve: com.facebook.android:facebook-android-sdk:4.4.0
[英]Error:(33, 13) Failed to resolve: com.facebook.android:audience-network-sdk:4.+
以下是我的build.gradle文件中的代码。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '24.0.0'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.test"
minSdkVersion 19
targetSdkVersion 19
jackOptions {
enabled true
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard.cfg'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
incremental false
}
dexOptions {
dexInProcess false
}
}
dependencies {
compile files('libs/StartAppInApp-3.4.2.jar')
compile 'com.google.code.gson:gson:2.6.1'
compile 'com.squareup.okio:okio:1.6.0'
compile 'com.squareup.okhttp:okhttp:2.7.0'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.facebook.android:audience-network-sdk:4.+'
}
当我用gradle文件执行项目同步时,它给了我错误。
Error:(33, 13) Failed to resolve: com.facebook.android:audience-network-sdk:4.+
谁能告诉我为什么我会收到此错误?
目前没有最新版本4.14.0。
暂时使用4.13.0以避免gradle错误。
compile 'com.facebook.android:audience-network-sdk:4.13.0'
使用facebook sdk的特定版本,例如:
dependencies {
compile 'com.facebook.android:audience-network-sdk:4.14.0'
}
gradle不允许任何特殊的符号或字符解析存储库。因此请根据您的要求使用facebooksdk作为特定版本,例如在依赖中的波纹管
compile 'com.facebook.android:audience-network-sdk:4.8.2'
该修补程序已部署了4.14.1版。 因此,您现在可以继续并通过gradle使用最新版本。 指定4. +将自动使用4.14.1版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.