2017-02-23 1 views
1

私は彼らがこのようGradleの公式ウェブサイト上でhttps://developer.chrome.com/multidevice/android/customtabssdkが25のときにカスタムタブをグレッグする方法は?

を参照を取る:compile 'com.android.support:customtabs:23.3.0'

私のプロジェクトは、SDKが25で、私はそれを変更したくないコンパイルのGradleの多くを使用していました。

sdkが25のときにgragdleカスタムタブをコンパイルする人はいますか?前もって感謝します。

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.1" 
    defaultConfig { 
     applicationId "com.example.my.myapp" 
     minSdkVersion 15 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 
     transitive = true; 
    } 
    compile files('libs/YouTubeAndroidPlayerApi.jar') 
    compile 'com.android.support:appcompat-v7:25.1.1'//i don't want to change it. 
    compile 'com.android.support:design:25.1.1' 
    compile 'com.android.support:support-v4:25.1.1' 
    compile 'com.android.support:recyclerview-v7:25.1.1' 
    compile 'com.github.PhilJay:MPAndroidChart:v3.0.1' 
    compile 'com.android.support:cardview-v7:25.1.1' 
    compile 'com.android.support:customtabs:23.3.0'//is this with verson 25 ? 
    testCompile 'junit:junit:4.12' 
} 
apply plugin: 'io.fabric' 
+1

更新がそれに来てください、25でカスタムタブをコンパイルしてみてください。 – Mohamed

+0

ありがとう、私は 'com.android.support:customtabs:25.0.0'をコンパイルしようとすると、それは動作します。 私はそれに関する文書がありますか?私は推測でそれを試してみます。 –

+0

カスタムタブに何も新しいものがない場合は、同じ文書があるはずです – Mohamed

答えて

1

あなたは

dependencies { 
    ... 
    compile 'com.android.support:customtabs:25.1.0' //25.2.0 has been published 
} 

利点

  • カスタムタブとUIとの相互作用のカスタマイズを使用する必要があります。

    は、ここに私のGradleです。

  • ページの読み込みを高速化し、アプリケーションを有効にします。

読むChrome Custom Tabs

+1

私はそれを試していた、あなたの助けの男のおかげで –

関連する問題