You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在IntelliJ IDEA中声明java-client依赖后报错求助

排查Appium Java Client依赖找不到的问题
  • 先核对pom.xml里的依赖代码是否正确,确保没有拼写错误:
<dependency>
    <groupId>io.appium</groupId>
    <artifactId>java-client</artifactId>
    <version>8.3.0</version>
</dependency>
  • 检查Maven仓库配置,确保项目能访问到包含该依赖的仓库。如果没配置,在pom.xml里添加国内镜像仓库(访问更稳定):
<repositories>
    <repository>
        <id>aliyunmaven</id>
        <url>https://maven.aliyun.com/repository/public</url>
    </repository>
</repositories>
  • 清理本地Maven仓库缓存:找到本地Maven仓库中io/appium/java-client/8.3.0的文件夹,直接删除,然后在终端执行mvn clean install -U强制重新下载依赖。

  • IDE缓存问题:如果用的是IntelliJ,点击右侧Maven面板的刷新按钮重新加载项目,或者执行File -> Invalidate Caches...,勾选"Clear file system cache and local history"后重启IDE。

  • 网络排查:测试能否访问依赖所在的仓库地址,如果打不开,检查代理、防火墙设置,或者切换网络环境。

内容的提问来源于stack exchange,提问作者Poseidon Greek

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 14:20:19