luckybilly / luckybilly/AutoRegister
编译报错
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 1.1k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
9:09:12: Executing 'compileGroovy'...
Starting Gradle Daemon...
Gradle Daemon started in 1 s 665 ms
> Configure project :app
project(app) apply auto-register plugin
> Task :autoregister:compileJava NO-SOURCE
> Task :autoregister:compileGroovy FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
1 actionable task: 1 executed
startup failed:
D:\workspace\githubspace\AutoRegister\autoregister\src\main\groovy\com\billy\android\register\CodeInsertProcessor.groovy: 3: unable to resolve class org.apache.commons.io.IOUtils
@ line 3, column 1.
import org.apache.commons.io.IOUtils
^
D:\workspace\githubspace\AutoRegister\autoregister\src\main\groovy\com\billy\android\register\RegisterTransform.groovy: 8: unable to resolve class org.apache.commons.io.FileUtils
@ line 8, column 1.
import org.apache.commons.io.FileUtils
^
D:\workspace\githubspace\AutoRegister\autoregister\src\main\groovy\com\billy\android\register\RegisterTransform.groovy: 6: unable to resolve class com.google.gson.reflect.TypeToken
@ line 6, column 1.
import com.google.gson.reflect.TypeToken
^
D:\workspace\githubspace\AutoRegister\autoregister\src\main\groovy\com\billy\android\register\RegisterTransform.groovy: 5: unable to resolve class com.google.gson.Gson
@ line 5, column 1.
import com.google.gson.Gson
^
D:\workspace\githubspace\AutoRegister\autoregister\src\main\groovy\com\billy\android\register\RegisterTransform.groovy: 7: unable to resolve class org.apache.commons.codec.digest.DigestUtils
@ line 7, column 1.
import org.apache.commons.codec.digest.DigestUtils
^
5 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':autoregister:compileGroovy'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing :autoregister:compileGroovy and inspect the unresolved imports in autoregister/src/main/groovy/com/billy/android/register/CodeInsertProcessor.groovy and RegisterTransform.groovy. Check how the required external classes are made available to compilation; the issue is done when this task completes without the five class-resolution errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100