kodika / MutataApp

49 stars 9 forks source link

GRADLE PLUGIN DEPRECATED:: The 'kotlin-android-extensions' Gradle plugin is deprecated. #15

Open jps05 opened 1 year ago

jps05 commented 1 year ago

I tried to use MutatApp following all your steps for setting it up, but final installAndRun is not working due to deprecated gradle plugin:

./scripts/20-InstallAndRun.sh

Configure project :app Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. WARNING:: DSL element 'useProguard' is obsolete. It will be removed in version 7.0 of the Android Gradle plugin. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard. app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.github.bumptech.glide:compiler:4.12.0'.

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 759ms

kostassite commented 1 year ago

We are looking into updating our gradle scripts

hedgemanNate commented 1 year ago

I tried to use MutatApp following all your steps for setting it up, but final installAndRun is not working due to deprecated gradle plugin:

./scripts/20-InstallAndRun.sh

Configure project :app Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin. WARNING:: DSL element 'useProguard' is obsolete. It will be removed in version 7.0 of the Android Gradle plugin. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard. app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.github.bumptech.glide:compiler:4.12.0'.

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

Could not create task ':app:mergeDebugJniLibFolders'. Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 759ms

I don't work for Mutata but you could look into using an older version of Gradle. That may fix your issue. No promises.