How to solve the error of "ERROR: No build artifacts found" after the following build successful msg?
How to solve the error of "ERROR: No build artifacts found" after the following build successful msg?
当我尝试通过Jitpack部署库时出现如下日志。
谁知道问题的原因?
- 在项目级别 build.gradle
- 在应用级别 build.gradle
BUILD SUCCESSFUL in 482ms
3 actionable tasks: 1 executed, 2 up-to-date
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
2019-10-04T08:31:16.46490349Z
Exit code: 0
ERROR: No build artifacts found
我找到了它发生的原因并解决了它。我将其声明为应用程序,而不是库。
这就是 jitpack 找不到构建工件的原因。
我留下了我如何用这个 solution.
改变它
我希望有人能从这个故障排除中得到帮助。
实际上我花了很多时间才找到这个问题。但是我发现了这个,我的问题是我在我的应用程序中添加了 maven 库 build.gradle 但这是错误的,你必须把所有的 maven库到你的库模块 build.gradle.
当我尝试通过Jitpack部署库时出现如下日志。
谁知道问题的原因?
- 在项目级别 build.gradle
- 在应用级别 build.gradle
BUILD SUCCESSFUL in 482ms
3 actionable tasks: 1 executed, 2 up-to-date
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
2019-10-04T08:31:16.46490349Z
Exit code: 0
ERROR: No build artifacts found
我找到了它发生的原因并解决了它。我将其声明为应用程序,而不是库。
这就是 jitpack 找不到构建工件的原因。
我留下了我如何用这个 solution.
我希望有人能从这个故障排除中得到帮助。
实际上我花了很多时间才找到这个问题。但是我发现了这个,我的问题是我在我的应用程序中添加了 maven 库 build.gradle 但这是错误的,你必须把所有的 maven库到你的库模块 build.gradle.