我决定将我的Android库从一个类上传到jitpack以方便调试,这样就可以轻松连接。这是库本身https://github.com/elfenLied666/Lmain 我根据指南创建了一个版本。我登录 jitpack 并单击“查找”,第一次似乎编译成功,尽管有错误。这里有一个小结论:
BUILD SUCCESSFUL in 1m 34s
140 actionable tasks: 138 executed, 2 up-to-date
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Publication: com.github.elfenLied666:Lmain:1.0.0
Build tool exit code: 0
Looking for artifacts...
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Dhttps.protocols=TLSv1.2
Looking for pom.xml in build directory and ~/.m2
[Fatal Error] lint-resources.xml:1:1: Content is not allowed in prolog.
[Fatal Error] lint-resources.xml:1:1: Premature end of file.
Found artifact: com.github.elfenLied666:Lmain:1.0.0
Found artifact: com.github.elfenLied666:Lmain:1.0.0
2025-01-15T11:06:56.329396723Z
Exit code: 0
✅ Build artifacts:
我尝试连接实现 'com.github.elfenLied666:Lmain:1.0.0' 但可惜,Android Studio 没有看到我的 L 类。也许有人可以告诉我出了什么问题。我稍微更改了 grudle 文件,但 1.0.1 版本根本没有构建。








