Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX

前端 未结 16 1157
轻奢々
轻奢々 2021-01-30 04:36

I\'m using Android Studio 3.2 Beta5 to migrate my project to AndroidX. When I rebuild my app I got these errors:

ERROR: [TA

16条回答
  •  没有蜡笔的小新
    2021-01-30 05:24

    Try removing this line:

    maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
    

    from the buildscript / repositories section of your build.gradle file.

    When I added that line, I got the error you described. When I removed it, no longer. That line should only be in the allprojects / repositories section.

提交回复
热议问题