Android如何上传aar到gitlab仓库用于远程依赖?

Could not PUT ‘https://gitlab.51yund.com/api/v4/projects/609/packages/maven/com/yuedong/netsdk/retrofit-helper/0.0.1/retrofit-helper-0.0.1.pom’. Received status code 401 from server: Unauthorized

上传软件包时 401,已经配置项目token

您参考下这个地址:Packages API | GitLab

401是未提供认证信息,需要在请求header中提供token,类似这种:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/:id/packages"