Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy

发布于:2021-07-21 23:17:36

Android3.2.0升级SDKVersion为28时,报Program type already present: android.support.v4.app.INotificationSideChannel




S


t


u


b



Stub


StubProxy时,所做修改


①向gradle.properties添加以下内容:
android.enableJetifier=true
android.useAndroidX=true
android.databinding.enableV2=true


②向build.gradle添加以下内容:


implementation ‘com.google.dagger?2.9’


③向build.gradle修改以下内容:
compileSdkVersion为28;targetSdkVersion 28
ext.supportLibVersion = ‘27.1.1’
dependencies {
implementation “com.android.support:support-v4:${supportLibVersion}”


implementation “com.android.support:appcompat-v7:${supportLibVersion}”


implementation “com.android.support:design:${supportLibVersion}”
}
④修改完成后,重新编译,选择File里Invalidated and Restart*粢幌
⑤项目中使用到的依赖库路径修改有很多事错误的,或者是没有修改的,这个没办法,只能每个文件都打开,一个一个的修改了???…

相关推荐

最新更新

猜你喜欢