最近我将我的eclipse项目转换为android studio,之后我更新了所有SDK 26. 我在我的项目XML中使用字体系列尝试了自定义字体,它正确显示 但是,当我运行项目并在移动设备上查看时,它不会更新。
请帮帮我。
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "xx.xxx.xx.xxx"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
sourceSets { main { assets.srcDirs = ['src/main/assets',
'src/main/res/assets/'] } }
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':xxx')
compile project(':xxxxx')
compile project(':xxxx')
compile project(':xxxxxx')
compile project(':xxxxx')
compile project(':xxxxxx')
compile 'com.google.code.gson:gson:1.6'
compile files('libs/AppMeasurement_Android.jar')
compile files('libs/commons-io-2.1.jar')
compile files('libs/commons-lang-2.6.jar')
/* compile files('libs/jackson-core-asl-1.9.5.jar')
compile files('libs/jackson-mapper-asl-1.9.5.jar')*/
//compile files('libs/json-path-0.8.0.jar')
compile files('libs/json-smart-1.1.jar')
//compile files('libs/libGoogleAnalyticsV2.jar')
//compile files('libs/nineoldandroids-2.4.0.jar')
compile 'com.google.android.gms:play-services-analytics:10.2.4'
compile 'com.android.support.constraint:`enter code here`constraint-
layout:1.0.2'
}