[英]android design library 28.0.0 causes app to crash
Including android design library to the dependencies causes app to crash. 在依赖项中包含android设计库会导致应用崩溃。
Im launching this on Nexus S emulator with 25 API. 我在具有25个API的Nexus S模拟器上启动了此程序。 All my libraries are of the same version, so I don't know what's the problem. 我所有的库都具有相同的版本,所以我不知道出了什么问题。
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0' //this one
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:support-v4:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0' // For CardView
implementation 'com.android.support:recyclerview-v7:28.0.0'
}
将您的代码迁移到AndroidX,新的SDK依赖项目录结构将帮助您避免现在和将来出现此类问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.