java–Google material design library error程序类型已存在:android.support.v4.app.INotificationSideChannel

java–Google material design library error程序类型已存在:android.support.v4.app.INotificationSideChannel,第1张

概述每当我尝试构建我的项目时,我都会添加实现’com.google.android.material:material:1.0.0-alpha1′,AndroidStudio说:Programtypealreadypresent:android.support.v4.app.INotificationSideChannel$Stub$ProxyMessage{kind=ERROR,text=Programtypealreadypresent:and

每当我尝试构建我的项目时,我都会添加实现’com.Google.@L_502_0@.material:material:1.0.0-Alpha1′,Android Studio说:

Program type already present: androID.support.v4.app.INotificationSIDeChannel$Stub$Proxy
Message{kind=ERROR, text=Program type already present: androID.support.v4.app.INotificationSIDeChannel$Stub$Proxy, sources=[UnkNown source file], tool name=Optional.of(D8)}

这是我的gradle脚本:

    apply plugin: 'com.androID.application'androID {    compileSdkVersion 'androID-P'    defaultConfig {        applicationID "it.smart.bab3"        minSdkVersion 21        targetSdkVersion 'p'        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro'        }    }}dependencIEs {    implementation filetree(dir: 'libs', include: ['*.jar'])    implementation 'com.androID.support:appcompat-v7:28.0.0-Alpha1'    implementation 'com.Google.androID.material:material:1.0.0-Alpha1'    implementation 'com.androID.support.constraint:constraint-layout:1.1.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:design:28.0.0-Alpha1'    implementation 'com.androID.support:support-v4:28.0.0-Alpha1'}

我是新的ith这种类型的错误,我没有找到这个错误的anithing.谢谢

解决方法:

我也一直在努力解决这个问题.最后,我成功地编译并运行了项目.

首先,摆脱这个:

implementation 'com.androID.support:appcompat-v7:28.0.0-Alpha1'implementation 'com.androID.support:design:28.0.0-Alpha1'implementation 'com.androID.support:support-v4:28.0.0-Alpha1'

在gradle.propertIEs文件中添加以下内容:

androID.useandroidX = trueandroID.enableJetifIEr = false

最后,同步项目然后编译.

如果它不起作用,请清理项目,然后重建.

PS:我无法让targetSdkVersion’p’工作.我的build.gradle文件最终如下:

apply plugin: 'com.androID.application'androID {    compileSdkVersion 'androID-P'    defaultConfig {        applicationID "com.github.alvarosct02.demo"        minSdkVersion 19        targetSdkVersion 27        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro'        }    }}dependencIEs {    implementation filetree(dir: 'libs', include: ['*.jar'])    implementation 'com.Google.androID.material:material:1.0.0-Alpha1'    implementation 'com.androID.support.constraint:constraint-layout:1.1.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'}

希望它也适合你.

总结

以上是内存溢出为你收集整理的java – Google material design library error程序类型已存在:android.support.v4.app.INotificationSideChannel全部内容,希望文章能够帮你解决java – Google material design library error程序类型已存在:android.support.v4.app.INotificationSideChannel所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1104026.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存