Not able to copy configurations dependencies after upgrading Gradle plugin for Android Studio to 3.0.1 and Gradle to 4.1

前端 未结 6 2036
野的像风
野的像风 2020-12-08 19:16

I used to copy \'compile\' dependencies to a specific folder using this simple gradle task :

task copyLibs(type: Copy) {
    from configurations.compile
             


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-08 19:59

    I started getting this error after upgrading from gradle 5.5 to 5.6, and it happens when I try to sync the project in intelliJ.

    Thanks to this answer on another question, I solved it by applying the idea plugin to all projects and then running gradle cleanIdea and after that everything started working again.

    Another day, another #inexplicable solution to a problem.

提交回复
热议问题