3
を解決するために失敗しましたアンドロイドプロジェクト構築しながら、私はこのエラーを取得しています:これは私のGradleファイルですは、TwitterのSDK
Error:Failed to resolve: com.twitter.sdk.android:twitter:2.0.0
を:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "com.khurana.nikhil.tuhub"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
manifestPlaceholders = [manifestApplicationId : "${applicationId}",
onesignal_app_id : "3363b4de-b4d3-45c7-a74a-2d75d7a97848",
onesignal_google_project_number: "561678063868"]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.+'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.firebase:firebase-database:10.0.0'
compile 'com.firebaseui:firebase-ui:1.0.0'
compile 'com.onesignal:OneSignal:[email protected]'
compile 'com.google.android.gms:play-services-gcm:10.0.0'
compile 'com.google.android.gms:play-services-analytics:10.0.0'
compile 'com.google.android.gms:play-services-location:10.0.0'
compile 'com.google.firebase:firebase-core:10.0.0'
compile 'com.google.android.gms:play-services:10.0.0'
}
apply plugin: 'com.google.gms.google-services'
私はポストの一つに言及したこのソリューションを試みたが、それはうまくいきませんでした。 はGradleのリポジトリセクション
maven { url 'https://maven.fabric.io/repo' }
を投影する。しかし、これは動作しませんでした、これを追加する:ここでは私が見つけた解決策です。 これも試しました:maven { url 'https://maven.fabric.io/repo' }
https://github.com/firebase/FirebaseUI-Android/issues/392 –
おかげでチームメイトです。私はすでにそのリンクを訪れていましたが、アプリケーションのグラデルファイルにリポジトリ行が追加されていなければならないことに気づきませんでした。再度、感謝します。 –