好的,我知道这个话题已经是堆叠溢出了,但是我已经做了我能做的一切,我在我的梯度里做了多功能板的事情,我做了我在stackoverflow想要得到的每一个答案,现在我真的需要帮助,昨天我在尝试解决这个问题3小时之后,我无法运行我的应用程序,希望你们能帮我一个忙。
这是我的应用程序gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "myproject.myname.com.myapp"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
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.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.firebase:firebase-storage:9.0.0'
compile 'com.google.firebase:firebase-database:9.0.0'
compile 'com.google.firebase:firebase-auth:9.0.0'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.firebaseui:firebase-ui-database:0.4.4'
compile 'com.squareup.picasso:picasso:2.5.2'
}
apply plugin: 'com.google.gms.google-services'这是我的项目分级文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:3.0.0'
// 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
}如果我试图添加multidex = true和所有的复用线,就会出现以下错误
Error:Execution failed for task ':app:packageAllReleaseClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzajj.class我真的很困惑,从昨天起我找不到答案,如果有人能帮我,我会很高兴的,谢谢
更新
好的,似乎是火基编译导致了java jdk值错误的问题。
在将其更改为9.4.0之后,它工作了
发布于 2016-09-09 13:27:04
更改ffirebase:firebase-storage,'com.google.firebase:firebase-database:9.0.0',‘com.google.Firebase:firebase-auth:’版本为9.4.0,而不是9.0.0
如果这对你有用的话请告诉我。
https://stackoverflow.com/questions/39398583
复制相似问题