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

前端 未结 6 2033
野的像风
野的像风 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:56

    I wanted to make a comment, but I'm still lacking the reputation required to do so (by one point!! >.< ). It doesn't look as if there's a way to acquire the list of implementation dependencies and the compileClasspath mentioned at the Gradle ticket Rafael posted won't work if you're working with Android directly, like my case where I need the dependencies to be exported so that Unity3D can package them up for release.

    So.. it looks like the only solution in this case is to use the deprecated compile type.

提交回复
热议问题