• <tfoot id='W5kcA'></tfoot>

    <small id='W5kcA'></small><noframes id='W5kcA'>

      <bdo id='W5kcA'></bdo><ul id='W5kcA'></ul>

    1. <legend id='W5kcA'><style id='W5kcA'><dir id='W5kcA'><q id='W5kcA'></q></dir></style></legend>
        <i id='W5kcA'><tr id='W5kcA'><dt id='W5kcA'><q id='W5kcA'><span id='W5kcA'><b id='W5kcA'><form id='W5kcA'><ins id='W5kcA'></ins><ul id='W5kcA'></ul><sub id='W5kcA'></sub></form><legend id='W5kcA'></legend><bdo id='W5kcA'><pre id='W5kcA'><center id='W5kcA'></center></pre></bdo></b><th id='W5kcA'></th></span></q></dt></tr></i><div id='W5kcA'><tfoot id='W5kcA'></tfoot><dl id='W5kcA'><fieldset id='W5kcA'></fieldset></dl></div>

        java.exe 在使用 Facebook SDK 时以非零退出值 2 结束

        时间:2023-09-28
          <tbody id='hc312'></tbody>

          • <i id='hc312'><tr id='hc312'><dt id='hc312'><q id='hc312'><span id='hc312'><b id='hc312'><form id='hc312'><ins id='hc312'></ins><ul id='hc312'></ul><sub id='hc312'></sub></form><legend id='hc312'></legend><bdo id='hc312'><pre id='hc312'><center id='hc312'></center></pre></bdo></b><th id='hc312'></th></span></q></dt></tr></i><div id='hc312'><tfoot id='hc312'></tfoot><dl id='hc312'><fieldset id='hc312'></fieldset></dl></div>

              <tfoot id='hc312'></tfoot>

              <small id='hc312'></small><noframes id='hc312'>

              • <legend id='hc312'><style id='hc312'><dir id='hc312'><q id='hc312'></q></dir></style></legend>

                • <bdo id='hc312'></bdo><ul id='hc312'></ul>
                  本文介绍了java.exe 在使用 Facebook SDK 时以非零退出值 2 结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  当我尝试编译我的应用程序时,出现以下错误

                  When I try to compile my app I get a following error

                  Error:Execution failed for task ':app:dexDebug'.
                  > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.7.0_60injava.exe'' finished with non-zero exit value 2
                  

                  如果我摆脱 Facebook Android SDK,它可以毫无问题地编译.

                  If I get rid of Facebook Android SDK it compiles without a problem.

                  我的 build.gradle:

                  My build.gradle:

                  apply plugin: 'com.android.application'
                  
                  android {
                      compileSdkVersion 21 //tried 19 and 22 changing targetSdkVersion and buildToolsVersion accordingly
                      buildToolsVersion "21.1.2"
                  
                      defaultConfig {
                          applicationId "..."
                          minSdkVersion 15
                          targetSdkVersion 21
                      }
                  
                      buildTypes {
                          release {
                              minifyEnabled true
                              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
                          }
                      }
                  
                  ...
                  
                  }
                  
                  dependencies {
                      ...
                      compile 'com.facebook.android:facebook-android-sdk:3.23.1' //tried older versions as well
                  }
                  

                  推荐答案

                  首先你应该尝试使用 gradle :MODULE:dependencies 列出你的依赖项检查是否存在库冲突(相同的库但版本不同).在这种情况下,我认为您应该从 Facebook SDK 中排除支持库模块.

                  First of all you should try to list your dependencies with gradle :MODULE:dependencies Check if there are libraries conflicts ( same library but different version ). In this case i supose you should exclude support library module from Facebook SDK.

                  compile ('com.facebook.android:facebook-android-sdk:3.23.1'){
                          exclude group: 'com.google.android', module: 'support-v4'
                      }
                  

                  这篇关于java.exe 在使用 Facebook SDK 时以非零退出值 2 结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在我的“gradle build"中遇到“org.gradle.api.Proj 下一篇:如何在 Java 模块中指定源和目标兼容性?

                  相关文章

                  最新文章

                  1. <legend id='wvUJV'><style id='wvUJV'><dir id='wvUJV'><q id='wvUJV'></q></dir></style></legend>

                      <i id='wvUJV'><tr id='wvUJV'><dt id='wvUJV'><q id='wvUJV'><span id='wvUJV'><b id='wvUJV'><form id='wvUJV'><ins id='wvUJV'></ins><ul id='wvUJV'></ul><sub id='wvUJV'></sub></form><legend id='wvUJV'></legend><bdo id='wvUJV'><pre id='wvUJV'><center id='wvUJV'></center></pre></bdo></b><th id='wvUJV'></th></span></q></dt></tr></i><div id='wvUJV'><tfoot id='wvUJV'></tfoot><dl id='wvUJV'><fieldset id='wvUJV'></fieldset></dl></div>
                    1. <tfoot id='wvUJV'></tfoot>

                      <small id='wvUJV'></small><noframes id='wvUJV'>

                        <bdo id='wvUJV'></bdo><ul id='wvUJV'></ul>