小编Has*_*yaz的帖子

什么是“程序类型已经存在”?

当我尝试构建我的project.i时出现此错误

程序类型已存在:android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat消息{种类=错误,文本=程序已存在:android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat,来源= [未知源文件],工具名称=可选。 ((D8)}

我也在堆栈溢出中找到解决方案,但没有帮助。这是我的build.gradle文件

    apply plugin: 'com.android.application'android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.example.hassan.qrscan"
    minSdkVersion 18
    targetSdkVersion 28
    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'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'me.dm7.barcodescanner:zxing:1.9'
implementation 'com.journeyapps:zxing-android-embedded:3.0.2@aar'
implementation 'com.android.support:design:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'}
Run Code Online (Sandbox Code Playgroud)

android android-studio android-studio-3.1

6
推荐指数
2
解决办法
1万
查看次数