我将eclipse项目导入到android studio中,但出现“程序类型已存在:com.google.android.gms.cast.ApplicationMetadata”此错误。我尝试了许多解决方案,但无法正常工作
问题是什么
这是我的Gradle(应用程序)文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.pwt.whatsisnearme"
minSdkVersion 15
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(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
implementation 'com.google.android.gms:play-services:12.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-
core:3.0.2'
implementation files('libs/android-google-maps-api11.jar')
implementation 'com.google.code.gson:gson:2.1'
implementation 'com.google.guava:guava:11.0.1'
implementation 'com.google.protobuf:protobuf-java:2.2.0'
implementation files('libs/android-query-full.0.23.16.jar')
implementation project(':library2')
implementation 'com.android.support:gridlayout-v7:28.0.0'
implementation files('libs/google-play-services.jar')
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation files('libs/google-api-client-1.10.3-beta.jar')
implementation files('libs/StartAppInApp-2.4.7.jar')
}
什么是解决方案?