java.util.zip.ZipException:重复条目:AbstractHttpContent.class
java.util.zip.ZipException: duplicate entry: AbstractHttpContent.class
我收到 abstractHttpContent.class 的重复输入错误,这是 App Engine 的一部分。
我正在使用 google 应用引擎后端。我也启用了 multidex,没有 multidex 它给我一个方法超出错误。
这是我的应用 gradle 文件
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.joseph.googlesign_in"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile project(path: ':gsiBackend', configuration: 'android-endpoints')
compile project(':gsiBackend')
}
这是我的后端 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18'
compile 'com.google.appengine:appengine-endpoints:1.9.18'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.18'
compile 'javax.servlet:servlet-api:2.5'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
}
似乎是在添加google播放服务以使用google登录后开始出现错误。
有没有人遇到过这个构建错误?关于如何修复它有什么建议吗?
谢谢
在我们讨论时,我相信 Google play services 8.3
对 google 登录系统进行了一些更改。你可以在这里查看:
https://developers.google.com/android/guides/releases#november_2015_-_v83
所以我建议你可以尝试使用version 8.1
。
问题出在 google 播放服务上。
这是顶级 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更改以下内容
来自
classpath 'com.google.gms:google-services:1.5.0-beta2'
到
classpath 'com.google.gms:google-services:1.5.0'
另外 aapt.exe 超时并显示错误。
运行 appt.exe 文件以确保它是 运行ning 并且现在一切似乎都在工作。
尝试 运行 禁用 mulidex 的应用程序,它仍然有效
问题出在 google 播放服务上。
这是我的顶级 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更改以下内容
来自
classpath 'com.google.gms:google-services:1.5.0-beta2'
到
classpath 'com.google.gms:google-services:1.5.0'
另外 aapt.exe 超时并显示错误。
我 运行 appt.exe 文件以确保它是 运行ning 并且现在一切似乎都在工作。
我也尝试 运行 禁用 mulidex 的应用程序,但它仍然有效
我收到 abstractHttpContent.class 的重复输入错误,这是 App Engine 的一部分。
我正在使用 google 应用引擎后端。我也启用了 multidex,没有 multidex 它给我一个方法超出错误。
这是我的应用 gradle 文件
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.joseph.googlesign_in"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.android.gms:play-services-auth:8.3.0'
compile project(path: ':gsiBackend', configuration: 'android-endpoints')
compile project(':gsiBackend')
}
这是我的后端 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
}
repositories {
jcenter();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18'
compile 'com.google.appengine:appengine-endpoints:1.9.18'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.18'
compile 'javax.servlet:servlet-api:2.5'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
}
似乎是在添加google播放服务以使用google登录后开始出现错误。
有没有人遇到过这个构建错误?关于如何修复它有什么建议吗?
谢谢
在我们讨论时,我相信 Google play services 8.3
对 google 登录系统进行了一些更改。你可以在这里查看:
https://developers.google.com/android/guides/releases#november_2015_-_v83
所以我建议你可以尝试使用version 8.1
。
问题出在 google 播放服务上。
这是顶级 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更改以下内容 来自
classpath 'com.google.gms:google-services:1.5.0-beta2'
到
classpath 'com.google.gms:google-services:1.5.0'
另外 aapt.exe 超时并显示错误。
运行 appt.exe 文件以确保它是 运行ning 并且现在一切似乎都在工作。
尝试 运行 禁用 mulidex 的应用程序,它仍然有效
问题出在 google 播放服务上。
这是我的顶级 gradle 文件
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.google.gms:google-services:1.5.0-beta2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更改以下内容 来自
classpath 'com.google.gms:google-services:1.5.0-beta2'
到
classpath 'com.google.gms:google-services:1.5.0'
另外 aapt.exe 超时并显示错误。
我 运行 appt.exe 文件以确保它是 运行ning 并且现在一切似乎都在工作。
我也尝试 运行 禁用 mulidex 的应用程序,但它仍然有效