首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android studio jdk以非零值2完成。

Android studio jdk以非零值2完成。
EN

Stack Overflow用户
提问于 2016-09-08 19:14:23
回答 1查看 64关注 0票数 0

好的,我知道这个话题已经是堆叠溢出了,但是我已经做了我能做的一切,我在我的梯度里做了多功能板的事情,我做了我在stackoverflow想要得到的每一个答案,现在我真的需要帮助,昨天我在尝试解决这个问题3小时之后,我无法运行我的应用程序,希望你们能帮我一个忙。

这是我的应用程序gradle文件

代码语言:javascript
复制
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'

这是我的项目分级文件

代码语言:javascript
复制
// 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和所有的复用线,就会出现以下错误

代码语言:javascript
复制
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之后,它工作了

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 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

如果这对你有用的话请告诉我。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39398583

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档