Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/204.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Studio构建失败(没有这种依赖关系);错误:程序类型已存在:common.utility.EEG_Android_Android Studio_Kotlin - Fatal编程技术网

Android Studio构建失败(没有这种依赖关系);错误:程序类型已存在:common.utility.EEG

Android Studio构建失败(没有这种依赖关系);错误:程序类型已存在:common.utility.EEG,android,android-studio,kotlin,Android,Android Studio,Kotlin,我在Android Studio中构建时遇到问题。这是错误:错误:程序类型已存在:common.utility.EEG 我试图解决类似的问题,但我无法让它工作。我试图寻找common.utility.EEG,但找不到 Caused by: com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex

我在Android Studio中构建时遇到问题。这是错误:
错误:程序类型已存在:common.utility.EEG

我试图解决类似的问题,但我无法让它工作。我试图寻找common.utility.EEG,但找不到

Caused by: com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
    Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
    Program type already present: common.utility.EEG
        at com.android.build.gradle.internal.tasks.DexMergingTaskRunnable.run(DexMergingTask.kt:471)
        at com.android.build.gradle.internal.tasks.Workers$ActionFacade.run(Workers.kt:335)
        at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:39)
以下是我的依赖项供参考:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.core:core-ktx:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.2.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    implementation 'com.github.isaac-udy:Kfilter:1.1.3'
    implementation 'com.github.zomato:androidphotofilters:1.0.1'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'com.github.mukeshsolanki:easypreferences:1.0.6'
    implementation 'org.tensorflow:tensorflow-android:+'
    implementation files('libs/Algorithm_1.5.jar')
    implementation files('libs/Basicutility_1.3.3.jar')
    implementation files('libs/commons-io-2.4.jar')
    implementation files('libs/commons-net-3.5.jar')
    implementation files('libs/d2xx.jar')
    implementation files('libs/eegproduct_1.5.jar')
    implementation files('libs/jmatio-1.0.jar')
    implementation files('libs/MQTT_1.0.jar')
}

defaultConfig
范围下的
build.gradle
中添加
multiDexEnabled true

android {

    defaultConfig {
        multiDexEnabled true
    }
}

dependencies {
    implementation 'com.android.support:multidex:1.0.3'
}

public class YouApplication extends Application {

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

}

我实现了它,但错误仍然存在。还有其他建议吗?谢谢!我能解决我的问题。