Not able to copy configurations dependencies after upgrading Gradle plugin for Android Studio to 3.0.1 and Gradle to 4.1
问题 I used to copy 'compile' dependencies to a specific folder using this simple gradle task : task copyLibs(type: Copy) { from configurations.compile into "$project.rootDir/reports/libs/" } But it stopped working just after upgrading my Android project using gradle plugin 3.0.1 for Android Studio and Gradle tool to 4.1. As the dependency configuration 'compile' is now deprecated by https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurations I changed it to