构建项目、编译运行项目的相关报错
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
由于我是个新手,所以我就把今天的过程大致描述一下,因为不清楚问题具体出在哪了哈哈哈
我之前用AS跑过其他项目,那时候环境可能弄得有点乱所以今天把之前的环境全部清除掉后重新安装了AS、本项目和安卓SDK,这个项目刚导进来的时候构建项目显示以下报错信息:
```
our build is currently configured to use incompatible Java 21.0.6 and Gradle 7.2. Cannot sync the project.
We recommend upgrading to Gradle version 9.0-milestone-1.
The minimum compatible Gradle version is 8.5.
The maximum compatible Gradle JVM version is 17.
```
然后我经过网上查询后发现需要在project structure里面配置jdk17,配置完以后虽然不会报错了,但是gradle构建项目后出现了以下警告信息:
内容大概是
```
Unable to warm-up Gradle task model
Failed to resolve: com.lahm.library:easy-protector-release:1.1.0
Failed to resolve: de.robv.android.xposed:api:82
Basedir E:\AndroidProject\RobotHelper-2.5\Android\java does not exist
```
我忽略后去强行运行项目,使用的是mumu模拟器12 版本V4.1.16(3627),然后出现了编译失败的报错信息:
我大致的猜想是少安装了xposed之类的框架,所以搜索了一下,发现作者您说并不一定需要xposed框架,另外xposed框架似乎也因为某些原因下架了,所以我也不清楚这个问题的解决方案,感谢解答
Contributor guide
No contributing guide indexed for this repository
Research direction
No source file or test is named. Start by reproducing the project import and build with the reported JDK and Gradle versions, then inspect the Gradle configuration for the unresolved dependencies and missing Android/java path. Done means the project syncs and compiles without those reported resolution or path errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100