<legend id='YhDVj'><style id='YhDVj'><dir id='YhDVj'><q id='YhDVj'></q></dir></style></legend>

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

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

        <tfoot id='YhDVj'></tfoot>
      1. 错误:多个库的包名称为 com.google.android.gms.license

        时间:2024-04-14
        <i id='j8z5X'><tr id='j8z5X'><dt id='j8z5X'><q id='j8z5X'><span id='j8z5X'><b id='j8z5X'><form id='j8z5X'><ins id='j8z5X'></ins><ul id='j8z5X'></ul><sub id='j8z5X'></sub></form><legend id='j8z5X'></legend><bdo id='j8z5X'><pre id='j8z5X'><center id='j8z5X'></center></pre></bdo></b><th id='j8z5X'></th></span></q></dt></tr></i><div id='j8z5X'><tfoot id='j8z5X'></tfoot><dl id='j8z5X'><fieldset id='j8z5X'></fieldset></dl></div>

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

        • <legend id='j8z5X'><style id='j8z5X'><dir id='j8z5X'><q id='j8z5X'></q></dir></style></legend>
          1. <tfoot id='j8z5X'></tfoot>

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

              <tbody id='j8z5X'></tbody>

                  本文介绍了错误:多个库的包名称为 com.google.android.gms.license的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当我尝试运行命令 ionic cordova build android 时出现如上标题所示的错误.然后我尝试删除其中一个 gms,当我再次构建时,删除它再次出现.如何解决这个问题?

                  When I try to run the command ionic cordova build android out error as title above. Then I try to remove one of the gms, when I build again the deleted it appears again. how to solve this?.

                  这是我的 build.gradle 的依赖项:

                  Here is my dependencies of my build.gradle :

                  dependencies {
                      compile fileTree(dir: 'libs', include: '*.jar')
                      // SUB-PROJECT DEPENDENCIES START
                      debugCompile(project(path: "CordovaLib", configuration: "debug"))
                      releaseCompile(project(path: "CordovaLib", configuration: "release"))
                      compile "com.google.android.gms:play-services-auth:+" // i remove this
                      compile "com.google.android.gms:play-services-identity:+"
                      compile "com.facebook.android:facebook-android-sdk:4.+"
                      // SUB-PROJECT DEPENDENCIES END
                  }
                  

                  推荐答案

                  我最近遇到了这个问题,对我来说问题是由于某种原因,android project.properties 文件是为 com.xml 生成的不同版本的.google.android.gms,例如:

                  I've faced this issue quite recently and the problem for me was that for some reason the android project.properties file was generated with different versions for the com.google.android.gms, as such:

                  target=android-26
                  android.library.reference.1=CordovaLib
                  cordova.system.library.1=com.android.support:support-v4:24.1.1+
                  cordova.system.library.2=com.google.android.gms:play-services-auth:+
                  cordova.system.library.3=com.google.android.gms:play-services-identity:+
                  cordova.system.library.4=com.google.android.gms:play-services-location:11.+
                  

                  这使得 library.2 和 library.3 需要一个版本,而 library.4 需要一个更具体的版本,从而导致在编译期间重复库引用.

                  This makes the library.2 and library.3 require one version while the library.4 requires a more specific version, thus causing the duplicate library reference during compiling.

                  虽然我不认为这应该是最终解决方案,但添加特定库对我有用.因此:

                  While I don't think this should be the final solution, adding the specific library worked for me. As such:

                  target=android-26
                  android.library.reference.1=CordovaLib
                  cordova.system.library.1=com.android.support:support-v4:24.1.1+
                  cordova.system.library.2=com.google.android.gms:play-services-auth:11.+
                  cordova.system.library.3=com.google.android.gms:play-services-identity:11.+
                  cordova.system.library.4=com.google.android.gms:play-services-location:11.+
                  

                  这篇关于错误:多个库的包名称为 com.google.android.gms.license的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:让 Ionic 应用出现在“分享"中列出和接收数据 下一篇:Ionic 3 响应状态:0 对于 URL:null

                  相关文章

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

                      <legend id='HsDAI'><style id='HsDAI'><dir id='HsDAI'><q id='HsDAI'></q></dir></style></legend>
                      • <bdo id='HsDAI'></bdo><ul id='HsDAI'></ul>
                      <tfoot id='HsDAI'></tfoot>

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