![](/img/trans.png)
[英]Android dependency 'com.google.android.gms:play-services-stats' has different version for the compile (16.0.1) and runtime (17.0.0) classpath
[英]Failure with Maven Android : The POM for com.google.android.gms:google-play-services:jar:13.0.0 is missing, no dependency information available
這是我在當前的Maven Android項目中遇到的錯誤。
The POM for com.google.android.gms:google-play-services:jar:13.0.0 is missing, no dependency information available
我曾嘗試從SDK Manager重新安裝谷歌播放服務並運行mnv clean install仍然無法正常工作。
知道如何解決這個問題。
你需要確保maven可以訪問可以找到工件的存儲庫。例如,maven central http://search.maven.org/不包含該工件。
我希望settings.xml或pom.xml包含一些定義在哪里查找的部分。
如果你可以執行maven命令試試: mvn help:effective-settings
以及: mvn help:effective-pom
應該顯示一些存儲庫。
另一個問題可能是您需要為maven配置代理服務器(如果您在后面)。
消息是警告還是錯誤? 因為一些工件也沒有pom.xml也很常見。 所以,如果它是一個警告,但其他一切工作只是忽略它:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.