Gradle only downloads .aar.asc from Maven Central

前端 未结 2 983
南笙
南笙 2021-01-28 16:14

I freshly deployed an Android library named TypedPreferences. I used it in another Android project for some days. Suddenly, it stopped working - dependencies cannot be f

相关标签:
2条回答
  • 2021-01-28 16:49

    Looks like the packaging element of the published POM has the wrong value. It should be aar, not aar.asc.

    0 讨论(0)
  • 2021-01-28 16:50

    Also, you always can force the type of artifact to download. Just add dependency like:

    compile "group:artifact:version@type"
    

    And in your case it will be

    compile "info.metadude.android:typed-preferences:1.0.0@aar"
    

    That's it.

    0 讨论(0)
提交回复
热议问题