久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Gradle for Android AAR 取決于 AAR,兩者都在同一個遠

Gradle for Android AAR Depending Upon AAR, Both In The Same Remote Repository?(Gradle for Android AAR 取決于 AAR,兩者都在同一個遠程存儲庫中?)
本文介紹了Gradle for Android AAR 取決于 AAR,兩者都在同一個遠程存儲庫中?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

關于 Gradle 中 AAR 文件的傳遞依賴關系存在一些問題:

There are a few questions floating around regarding transitive dependencies with AAR files in Gradle:

  • Android Studio 0.2.3 無法解析傳遞 aar依賴關系
  • Android Gradle 庫依賴和使用 Nexus 的庫依賴
  • 存儲庫中的 Aar.外部依賴和 NoClassDefFoundError

我在嘗試在遠程存儲庫中設置對 AAR 文件的傳遞依賴時也遇到了類似的問題.我有 App A,取決于庫 B,而庫 B 又取決于在庫 C 上.庫 C 位于 Maven 存儲庫中.庫 B 在同一個倉庫中,帶有 POM包含對庫 C 的依賴項.應用程序 A 在其依賴項中有庫 B.但是,運行 gradle clean assembleDebug 會導致:模塊版本 [庫 B] 依賴于庫,但本身不是庫".

I too have run into similar problems trying to set up transitive dependencies upon AAR files in a remote repository. I have App A, depending upon Library B, which in turn depends upon Library C. Library C is in a Maven repo. Library B is in the same repo, with a POM that contains the dependency upon Library C. App A has Library B in its dependencies. However, running gradle clean assembleDebug results in: "Module version [Library B] depends on libraries but is not a library itself".

我試圖懸賞其中一個問題,希望得到澄清,但沒有運氣.

I tried putting a bounty on one of those questions, hoping for clarity, with no luck.

我的猜測是,我和有上述 SO 問題的人看到的困難可能有兩個來源:

My guess is that there are two possible sources of the difficulty that I and those with the aforementioned SO question are seeing:

  1. 來自遠程存儲庫的傳遞 AAR 依賴關系被簡單地破壞了

  1. Transitive AAR dependencies from a remote repository are simply broken

來自遠程存儲庫的傳遞 AAR 依賴項工作,但在我們的 POM 文件、build.gradle 文件中存在一些問題,或者某些東西破壞了依賴項

Transitive AAR dependencies from a remote repository work, but there is something off in our POM files, build.gradle files, or something that is breaking the dependencies

問題:有人知道某個公共存儲庫(例如 Maven Central)中的 AAR 工件,它依賴于同樣位于同一公共存儲庫中的另一個 AAR 工件嗎?

The Question: Does anyone know of an AAR artifact in some public repository (e.g., Maven Central), that depends upon another AAR artifact, also in the same public repository?

我對依賴于本地存儲庫中某些內容的 AAR 不感興趣,例如 Maven Central 中依賴于 com.android.support:support-v4 的 AAR.就我而言,如果庫 B 和庫 C 都在我的本地 Maven 存儲庫 (~/.m2) 中,則一切正常.

I am not interested in an AAR that depends upon something in a local repository, like an AAR in Maven Central that depends upon com.android.support:support-v4. In my case, if Library B and Library C are both in my local Maven repository (~/.m2), everything works fine.

根據 Xav,我正在做的事情應該有效.因此,我希望有人能給我指出一個可行的例子,以便我可以用它來確定我們其他人可能出錯的地方.

According to Xav, what I am doing should work. Hence, I am hoping that somebody can point me to a working example, so that I can use it to determine where the rest of us may be going wrong.

注意:我知道要求異地資源是禁止的.在這種情況下,我不是在尋找資源本身,而是作為工作配置的示例,以幫助調試非工作配置.如果您有另一種寫出顯示工作配置的答案的方式,那就太棒了!

NOTE: I know that asking for off-site resources is verboten. In this case, I am not looking for the resource in its own right, but as an example of a working configuration, to help debug a non-working configuration. If you have another way of writing up an answer showing a working configuration, that'd be awesome!

謝謝!

推薦答案

Gradle 1.9 和 com.android.tools.build:gradle:0.7.+ 似乎解決了我的問題.至少,我無法再重現該問題.

It appears that my problem has cleared up with Gradle 1.9 and com.android.tools.build:gradle:0.7.+. Leastways, I can no longer reproduce the problem.

這篇關于Gradle for Android AAR 取決于 AAR,兩者都在同一個遠程存儲庫中?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 日韩毛片网 | 色小姐综合网 | 羞羞在线观看视频 | 午夜手机在线视频 | 久产久精国产品 | 久久91精品| 欧美区日韩区 | 中文字幕国产 | 国产精品一区二区三区在线 | 久久黄色 | 亚洲一区免费视频 | 成人在线中文字幕 | 国产精品久久久久久久粉嫩 | 国产精品久久久久一区二区三区 | 伦理二区 | 欧美日韩视频在线播放 | 999www视频免费观看 | 国产精品色一区二区三区 | 国产有码| 成人免费视频在线观看 | 三级视频网站 | 亚洲成人av在线 | 91麻豆精品国产91久久久久久 | 毛片免费观看视频 | 黄色av网站在线免费观看 | 天天操天天舔 | 成人永久免费视频 | 国产精彩视频 | 色888www视频在线观看 | 欧美精品久久久久久 | 中文字幕一二三区 | 欧美日韩亚洲视频 | 久久精品视频在线播放 | 玖玖视频网 | 精品视频一区二区三区在线观看 | 瑞克和莫蒂第五季在线观看 | 日本特黄特色aaa大片免费 | 成人亚洲片 | 超碰人人在线 | 精品国产乱码久久久久久果冻传媒 | 精品一区二区不卡 |