Avatar ·

Deprecated RegisterResGeneratingTask in Android Gradle Plugin: How to Fix?

Hi! I updated Android Studio to version 3.0 and encountered a warning when building the project. The Gradle logs say: "RegisterResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)".\n\nI use Kotlin in my project and connect third-party libraries via Gradle. In the `build.gradle` file (module level), I have this simple configuration:\n\n```kotlin\nandroid {\n compileSdkVersion 26\n defaultConfig {\n applicationId "com.example.myapp"\n minSdkVersion 19\n targetSdkVersion 26\n versionCode 1\n versionName "1.0"\n testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"\n }\n buildTypes {\n release {\n minifyEnabled false\n proguardFiles getDefaultP