can-i-drop-jetifier
can-i-drop-jetifier copied to clipboard
Compatibility with Gradle 7.0 rc2
When running ./gradlew -Pandroid.enableJetifier=false canIDropJetifier
I get the following output:
> Task :myapp:canIDropJetifier FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':myapp:canIDropJetifier' (type 'CanIDropJetifierTask').
- Type 'CanIDropJetifierTask' property 'analyzeOnlyAndroidModules' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
- Type 'CanIDropJetifierTask' property 'configurationRegex' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
- Type 'CanIDropJetifierTask' property 'includeModules' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
- Type 'CanIDropJetifierTask' property 'parallelMode' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
- Type 'CanIDropJetifierTask' property 'parallelModePoolSize' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
Please refer to https://docs.gradle.org/7.0-rc-2/userguide/validation_problems.html#missing_annotation for more details about this problem.
Same with 7.0 release.
Same with 7.0 release.
Same with Gradle 7.0.2.
This project hasn't been updated in two years. I jumped to https://github.com/dipien/bye-bye-jetifier on side project, worked no problem.
I worked around this by setting gradle.properties back to to distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
and in my build.gradle I had to go back to classpath 'com.android.tools.build:gradle:4.2.0'
and then it worked - and I can drop jetifier :-)