本文介绍了什么是“程序类型已存在”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When i try to build my project.i got this error

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

i also to find solution in stack overflow but it didn't help.here is my build.gradle file

    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'}


推荐答案

 implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'

将依赖性版本降级为

 implementation 'com.android.support:appcompat-v7:27.1.0'

并添加设计依赖项

 implementation 'com.android.support:design:27.1.0'

一旦对我有用,就对其进行检查

check it once this works for me

这篇关于什么是“程序类型已存在”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 19:56