Cordova android studio中的多个dex错误

Cordova android studio中的多个dex错误,cordova,android-studio,Cordova,Android Studio,我正在尝试使用phonegap androidstudio制作一个应用程序。当我尝试运行phonegap的index.html时,它会显示17个错误和0个警告 如何解决这个问题?如果你/一个插件多次尝试实现谷歌服务,就会出现这个错误。将以下行放在项目中Android文件夹的build.gradle(Module Android)文件中: apply plugin: 'com.android.application' configurations { all*.exclude group

我正在尝试使用phonegap androidstudio制作一个应用程序。当我尝试运行phonegap的index.html时,它会显示17个错误和0个警告


如何解决这个问题?

如果你/一个插件多次尝试实现谷歌服务,就会出现这个错误。将以下行放在项目中Android文件夹的build.gradle(Module Android)文件中:

apply plugin: 'com.android.application'

configurations {
    all*.exclude group: 'com.android.support', module: 'support-v4'
    all*.exclude group: 'com.google.android.gms', module: 'play-services'
}
apply plugin: 'com.android.application'

configurations {
    all*.exclude group: 'com.android.support', module: 'support-v4'
    all*.exclude group: 'com.google.android.gms', module: 'play-services'
}