1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > android 找不到 theme android – 找不到资源:Theme.Leanback

android 找不到 theme android – 找不到资源:Theme.Leanback

时间:2021-06-30 00:34:51

相关推荐

android 找不到 theme android – 找不到资源:Theme.Leanback

在build.gradle中添加appcompat-v7和leanback in dependencies部分

compile 'com.android.support:appcompat-v7:23.1.1'

compile 'com.android.support:leanback-v17:23.1.1'

在style.xml中

在主要活动(Launcher)下的AndroidManifest.xml中

示例build.gradle:

apply plugin: 'com.android.application'

android {

compileSdkVersion 23

buildToolsVersion "23.0.2"

defaultConfig {

applicationId "PANYNAME.something"

minSdkVersion 17

targetSdkVersion 23

versionCode 1

versionName "1.0"

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

}

}

}

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'

compile 'com.android.support:appcompat-v7:23.1.1'

compile 'com.android.support:leanback-v17:23.1.1'

compile 'com.android.support:design:23.1.1'

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。