gpt4 book ai didi

android - Droid-Fu 构建错误

转载 作者:太空宇宙 更新时间:2023-11-03 12:12:51 25 4
gpt4 key购买 nike

我正尝试按照 GitHub 页面上的说明构建 Droid-Fu,但构建失败。这是我在 Droid-Fu 文件夹中运行 mvn package 后得到的消息

[INFO] artifact junit:junit: checking for updates from central
Downloading: http://powermock.googlecode.com/svn/repo//com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository powermock-repo (http://powermock.googlecode.com/svn/repo/)
Downloading: http://repo1.maven.org/maven2/com/google/android/maps/maps/9_r1/maps-9_r1.jar
[INFO] Unable to find resource 'com.google.android.maps:maps:jar:9_r1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.google.android.maps:maps:jar:9_r1

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT
2) com.google.android.maps:maps:jar:9_r1

----------
1 required artifact is missing.

for artifact:
com.github.droidfu:droid-fu:jar:1.0-SNAPSHOT

知道我做错了什么吗?

最佳答案

我遇到了同样的问题。较新版本的 Android SDK 稍微改变了目录。您必须将 Maven 指向 Google Maps jar 版本 9 的正确路径。

只需在以下命令中将 path-to-android-sdk 替换为您的基本目录

mvn install:install-file -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=9_r1 -Dpackaging=jar -Dfile=android-sdk 路径/add -ons/addon_google_apis_google_inc_9/libs/maps.jar

然后你要执行以下命令来构建 droid-fu jar:mvn包

希望这对您有所帮助!

关于android - Droid-Fu 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5024121/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com