1
我采取的官方网站https://developer.chrome.com/multidevice/android/customtabs如何在sdk为25时编译自定义选项卡?
他们摇篮这样的引用:compile 'com.android.support:customtabs:23.3.0'
我的项目已经使用了大量的Gradle编译的SDK是25的,我不想改变它。
是否有人在sdk为25时编译gragdle Custom Tabs?提前致谢。
这里是我的gradle产出:
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'
尝试编译自定义选项卡25,确保更新来到了它。 – Mohamed
谢谢,我尝试编译'com.android.support:customtabs:25.0.0',它的工作原理。 我有一个问题,有没有关于它的任何文件?我只是猜测而已。 –
如果没有新的自定义选项卡,它应该有我看到的相同的文档 – Mohamed