3

私はサポートライブラリのバージョン27.0.0を使用しています 私はこの奇妙なビルドエラーを取得します。私が使用しているサポートライブラリは27.0.0ですが、まだ27.0.99のエラーが表示されますGradle Build Error support libraryを見つけることができませんでした

私は、クリーンなプロジェクトを試して、アンドロイドスタジオでキャッシュを無効にし、アンドロイドスタジオを再起動しました。私は27.0.2に私のbuildtoolversionとサポートライブラリを更新した場合

それはまだ27.0.99

Error:Could not find com.android.support:customtabs:27.0.99. 
Searched in the following locations: 
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
    https://jcenter.bintray.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    https://jcenter.bintray.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
    https://repo1.maven.org/maven2/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    https://repo1.maven.org/maven2/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
    https://maven.fabric.io/public/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    https://maven.fabric.io/public/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
    https://jitpack.io/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    https://jitpack.io/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
    https://maven.google.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.pom 
    https://maven.google.com/com/android/support/customtabs/27.0.99/customtabs-27.0.99.jar 
Required by: 
    project :app 

Please install the Android Support Repository from the Android SDK Manager. 
<a href="openAndroidSdkManager">Open Android SDK Manager</a> 

ため、エラーがスローされますIv'eは、これが私のデフォルトであるグーグル

allprojects { 
    repositories { 
     jcenter() 
     maven { 
      url "https://maven.google.com" 
     } 
    } 
} 

からサポートライブラリのためにMavenを追加gradle config

compileSdkVersion 27 
buildToolsVersion "27.0.0" 
defaultConfig { 
     vectorDrawables.useSupportLibrary = true 
     applicationId "com.pro.test" 
     minSdkVersion 19 
     targetSdkVersion 27 
     versionCode 18 
     versionName "1.17" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
     signingConfig signingConfigs.config 
     multiDexEnabled true 
} 

私が使用しているサポートライブラリは

compile 'com.android.support:appcompat-v7:27.0.0' 
compile 'com.android.support.constraint:constraint-layout:1.0.2' 
compile 'com.android.support:design:27.0.0' 
compile 'com.android.support:support-v4:27.0.0'  
compile 'com.android.support:customtabs:27.0.0' 
compile 'com.android.support:cardview-v7:27.0.0' 
+0

あなたが '' Mavenの{URL 'をhttps://maven.google.com'}を追加しました。.. ??? –

+0

@Niluええ、私のグラデルファイルに既にあります。 – iCoder

+0

@iCoder checkセルビンのコメント –

答えて

1

あなたのアプリでOneSignal SDKを使用していますか?

compile 'com.onesignal:OneSignal:3.5.8' 

そして、あなたが26.0.2ではなく27

にごbuildToolsVersiontargetSdkVersioncompileSdkVersionダウングレードする必要があります:はい、あなたが使用する必要がある場合は

これが代わりに含まv27と100%互換性がないようです。

ソース:

https://github.com/OneSignal/OneSignal-Android-SDK/issues/352 https://github.com/OneSignal/OneSignal-Android-SDK/issues/303

関連する問題