虽然存在许多类似的问题,但我检查了所有答案,但没有一个对我有效!
这是编译代码时我遇到的错误:
Program type already present: androID.support.v4.app.BackStackRecord$OpMessage{kind=ERROR, text=Program type already present: androID.support.v4.app.BackStackRecord$Op, sources=[UnkNown source file], tool name=Optional.of(D8)}
这是我的gradle文件:
apply plugin: 'com.androID.application'androID { compileSdkVersion 27 defaultConfig { applicationID "com.narsun.grocery" minSdkVersion 21 targetSdkVersion 27 versionCode 1 versionname "1.0" multIDexEnabled true testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'meta-inf/DEPENDENCIES.txt' exclude 'meta-inf/liCENSE.txt' exclude 'meta-inf/NOTICE.txt' exclude 'meta-inf/NOTICE' exclude 'meta-inf/liCENSE' exclude 'meta-inf/DEPENDENCIES' exclude 'meta-inf/notice.txt' exclude 'meta-inf/license.txt' exclude 'meta-inf/dependencIEs.txt' exclude 'meta-inf/LGPL2.1' }}dependencIEs { implementation filetree(dir: 'libs', include: ['*.jar']) androIDTestImplementation('com.androID.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.androID.support', module: 'support-annotations' }) implementation 'com.androID.support:appcompat-v7:27.1.0' implementation 'com.androID.support:cardvIEw-v7:27.1.0' implementation 'com.androID.support:design:27.1.0' implementation 'com.androID.support.constraint:constraint-layout:1.0.2' implementation 'com.github.sd6352051.niftydialogeffects:niftydialogeffects:1.0.0@aar' implementation 'com.squareup.picasso:picasso:2.5.2' implementation 'com.squareup:androID-times-square:1.6.5@aar' implementation 'com.daimajia.slIDer:library:1.1.5@aar' implementation 'com.astuetz:pagerslIDingtabstrip:1.0.1' implementation 'de.hdodenhof:circleimagevIEw:2.2.0' implementation 'com.github.myinnos:AwesomeImagePicker:1.0.2' implementation 'com.github.ratty3697:androID-smart-animation-library:1.6' implementation 'com.github.zcweng:switch-button:0.0.3@aar' implementation 'com.github.JakeWharton:VIEwPagerIndicator:2.4.1' implementation 'com.Google.androID.exoplayer:exoplayer:2.6.1' implementation 'pl.droIDsonroIDs.gif:androID-gif-drawable:1.2.10' implementation 'com.androID.support:multIDex:1.0.3' testImplementation 'junit:junit:4.12'}
你可以告诉我是否还有其他东西需要补充,以了解我在做什么或我错在哪里.
解决方法:
包版本可能不兼容.尝试降级com.androID.support包,即appcompat
所以 – 实现’com.androID.support:appcompat-v7:27.0.1′
总结以上是内存溢出为你收集整理的java – 程序类型已存在错误全部内容,希望文章能够帮你解决java – 程序类型已存在错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)