androidgradlejitpack

How to solve the error of "ERROR: No build artifacts found" after the following build successful msg?


It happened with the following log when I tried to deploy the library through Jitpack.
Anyone who knows the cause of the problem?

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

Solution

  • I found why it happened and solved it. I declare it as an application, not library.
    That's why jitpack couldn't find the build artifacts. I left how I changed it with this solution.

    I hope someone can get help from this troubleshooting.