bye-bye-jetifier icon indicating copy to clipboard operation
bye-bye-jetifier copied to clipboard

FileNotFoundException

Open kevinzetterstrom opened this issue 3 years ago • 5 comments

Describe the bug When running bye bye jetifier on application modules, I receive a FileNotFoundException, similar to https://github.com/dipien/bye-bye-jetifier/issues/38

With verbose mode on, here is the output:

./gradlew :home:app:canISayByeByeJetifier -Pandroid.enableJetifier=false --no-configuration-cache                        
Configuration on demand is an incubating feature.
Type-safe dependency accessors is an incubating feature.

> Configure project :home:app
Build Number: null
Job Name: null
version code: 9999999
Version Name: 1.0 - Dev
WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats.
WARNING:: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

> Task :home:app:canISayByeByeJetifier
excludedConfigurations: [ktlint, lintClassPath, debugUnitTestImplementationDependenciesMetadata, debugImplementationDependenciesMetadata, implementationDependenciesMetadata, releaseImplementationDependenciesMetadata, releaseUnitTestImplementationDependenciesMetadata, testImplementationDependenciesMetadata]
excludedFilesFromScanning: [org/jetbrains/kotlin/load/java/JvmAnnotationNamesKt, kotlin/reflect/jvm/internal/impl/load/java/JvmAnnotationNamesKt, org/jetbrains/kotlin/android/synthetic/AndroidConst, org/jetbrains/kotlin/android/synthetic/codegen/AndroidIrTransformer, org/jetbrains/kotlin/android/synthetic/codegen/ResourcePropertyStackValue, org/jetbrains/kotlin/com/intellij/codeInsight/NullableNotNullManager, com/facebook/appevents/codeless/internal/ViewHierarchy, shark/AndroidReferenceMatchers, leakcanary/internal/AndroidSupportFragmentDestroyWatcher, curtains/internal/WindowCallbackWrapper]
excludedProjectsFromScanning: []
excludeSupportAnnotations: true
Parsing config file

=========================================
Project: app
=========================================
Configurations to scan: [configuration ':home:app:_classStructurekaptDebugAndroidTestKotlin', configuration ':home:app:_classStructurekaptDebugKotlin', configuration ':home:app:_classStructurekaptDebugUnitTestKotlin', configuration ':home:app:_classStructurekaptReleaseKotlin', configuration ':home:app:_classStructurekaptReleaseUnitTestKotlin', configuration ':home:app:androidApis', configuration ':home:app:androidTestAnnotationProcessor', configuration ':home:app:androidTestApi', configuration ':home:app:androidTestApiDependenciesMetadata', configuration ':home:app:androidTestApk', configuration ':home:app:androidTestCompile', configuration ':home:app:androidTestCompileOnly', configuration ':home:app:androidTestCompileOnlyDependenciesMetadata', configuration ':home:app:androidTestDebugAnnotationProcessor', configuration ':home:app:androidTestDebugApi', configuration ':home:app:androidTestDebugApiDependenciesMetadata', configuration ':home:app:androidTestDebugApk', configuration ':home:app:androidTestDebugCompile', configuration ':home:app:androidTestDebugCompileOnly', configuration ':home:app:androidTestDebugCompileOnlyDependenciesMetadata', configuration ':home:app:androidTestDebugImplementation', configuration ':home:app:androidTestDebugImplementationDependenciesMetadata', configuration ':home:app:androidTestDebugIntransitiveDependenciesMetadata', configuration ':home:app:androidTestDebugProvided', configuration ':home:app:androidTestDebugRuntimeOnly', configuration ':home:app:androidTestDebugRuntimeOnlyDependenciesMetadata', configuration ':home:app:androidTestDebugWearApp', configuration ':home:app:androidTestImplementation', configuration ':home:app:androidTestImplementationDependenciesMetadata', configuration ':home:app:androidTestIntransitiveDependenciesMetadata', configuration ':home:app:androidTestProvided', configuration ':home:app:androidTestReleaseAnnotationProcessor', configuration ':home:app:androidTestReleaseApi', configuration ':home:app:androidTestReleaseApiDependenciesMetadata', configuration ':home:app:androidTestReleaseApk', configuration ':home:app:androidTestReleaseCompile', configuration ':home:app:androidTestReleaseCompileOnly', configuration ':home:app:androidTestReleaseCompileOnlyDependenciesMetadata', configuration ':home:app:androidTestReleaseImplementation', configuration ':home:app:androidTestReleaseImplementationDependenciesMetadata', configuration ':home:app:androidTestReleaseIntransitiveDependenciesMetadata', configuration ':home:app:androidTestReleaseProvided', configuration ':home:app:androidTestReleaseRuntimeOnly', configuration ':home:app:androidTestReleaseRuntimeOnlyDependenciesMetadata', configuration ':home:app:androidTestReleaseWearApp', configuration ':home:app:androidTestRuntimeOnly', configuration ':home:app:androidTestRuntimeOnlyDependenciesMetadata', configuration ':home:app:androidTestUtil', configuration ':home:app:androidTestWearApp', configuration ':home:app:annotationProcessor', configuration ':home:app:api', configuration ':home:app:apiDependenciesMetadata', configuration ':home:app:apk', configuration ':home:app:apolloDebugAndroidTestServiceConsumer', configuration ':home:app:apolloDebugAndroidTestServiceProducer', configuration ':home:app:apolloDebugServiceConsumer', configuration ':home:app:apolloDebugServiceProducer', configuration ':home:app:apolloDebugUnitTestServiceConsumer', configuration ':home:app:apolloDebugUnitTestServiceProducer', configuration ':home:app:apolloMetadata', configuration ':home:app:apolloReleaseServiceConsumer', configuration ':home:app:apolloReleaseServiceProducer', configuration ':home:app:apolloReleaseUnitTestServiceConsumer', configuration ':home:app:apolloReleaseUnitTestServiceProducer', configuration ':home:app:archives', configuration ':home:app:aspectjWeaverAgent', configuration ':home:app:compile', configuration ':home:app:compileOnly', configuration ':home:app:compileOnlyDependenciesMetadata', configuration ':home:app:coreLibraryDesugaring', configuration ':home:app:debugAabPublication', configuration ':home:app:debugAndroidTestAnnotationProcessorClasspath', configuration ':home:app:debugAndroidTestApi', configuration ':home:app:debugAndroidTestApiDependenciesMetadata', configuration ':home:app:debugAndroidTestCompileClasspath', configuration ':home:app:debugAndroidTestCompileOnly', configuration ':home:app:debugAndroidTestCompileOnlyDependenciesMetadata', configuration ':home:app:debugAndroidTestDexGuardConsumerRuleArtifacts', configuration ':home:app:debugAndroidTestDexGuardLibraryjarArtifacts', configuration ':home:app:debugAndroidTestDexGuardUseLibraryArtifacts', configuration ':home:app:debugAndroidTestImplementation', configuration ':home:app:debugAndroidTestImplementationDependenciesMetadata', configuration ':home:app:debugAndroidTestIntransitiveDependenciesMetadata', configuration ':home:app:debugAndroidTestRuntimeClasspath', configuration ':home:app:debugAndroidTestRuntimeOnly', configuration ':home:app:debugAndroidTestRuntimeOnlyDependenciesMetadata', configuration ':home:app:debugAnnotationProcessor', configuration ':home:app:debugAnnotationProcessorClasspath', configuration ':home:app:debugApi', configuration ':home:app:debugApiDependenciesMetadata', configuration ':home:app:debugApiElements', configuration ':home:app:debugApk', configuration ':home:app:debugApkPublication', configuration ':home:app:debugCompile', configuration ':home:app:debugCompileClasspath', configuration ':home:app:debugCompileOnly', configuration ':home:app:debugCompileOnlyDependenciesMetadata', configuration ':home:app:debugDexGuardConsumerRuleArtifacts', configuration ':home:app:debugDexGuardConsumerRulesFiles', configuration ':home:app:debugDexGuardFeatureLibraryjarArtifacts', configuration ':home:app:debugDexGuardLibraryjarArtifacts', configuration ':home:app:debugDexGuardUseLibraryArtifacts', configuration ':home:app:debugImplementation', configuration ':home:app:debugIntransitiveDependenciesMetadata', configuration ':home:app:debugProvided', configuration ':home:app:debugReverseMetadataValues', configuration ':home:app:debugRuntimeClasspath', configuration ':home:app:debugRuntimeElements', configuration ':home:app:debugRuntimeOnly', configuration ':home:app:debugRuntimeOnlyDependenciesMetadata', configuration ':home:app:debugUnitTestAnnotationProcessorClasspath', configuration ':home:app:debugUnitTestApi', configuration ':home:app:debugUnitTestApiDependenciesMetadata', configuration ':home:app:debugUnitTestCompileClasspath', configuration ':home:app:debugUnitTestCompileOnly', configuration ':home:app:debugUnitTestCompileOnlyDependenciesMetadata', configuration ':home:app:debugUnitTestImplementation', configuration ':home:app:debugUnitTestIntransitiveDependenciesMetadata', configuration ':home:app:debugUnitTestRuntimeClasspath', configuration ':home:app:debugUnitTestRuntimeOnly', configuration ':home:app:debugUnitTestRuntimeOnlyDependenciesMetadata', configuration ':home:app:debugWearApp', configuration ':home:app:debugWearBundling', configuration ':home:app:default', configuration ':home:app:implementation', configuration ':home:app:intransitiveDependenciesMetadata', configuration ':home:app:kapt', configuration ':home:app:kaptAndroidTest', configuration ':home:app:kaptAndroidTestDebug', configuration ':home:app:kaptAndroidTestRelease', configuration ':home:app:kaptClasspath_kaptDebugAndroidTestKotlin', configuration ':home:app:kaptClasspath_kaptDebugKotlin', configuration ':home:app:kaptClasspath_kaptDebugUnitTestKotlin', configuration ':home:app:kaptClasspath_kaptReleaseKotlin', configuration ':home:app:kaptClasspath_kaptReleaseUnitTestKotlin', configuration ':home:app:kaptDebug', configuration ':home:app:kaptRelease', configuration ':home:app:kaptTest', configuration ':home:app:kaptTestDebug', configuration ':home:app:kaptTestRelease', configuration ':home:app:kotlinCompilerClasspath', configuration ':home:app:kotlinCompilerPluginClasspath', configuration ':home:app:kotlinCompilerPluginClasspathDebug', configuration ':home:app:kotlinCompilerPluginClasspathDebugAndroidTest', configuration ':home:app:kotlinCompilerPluginClasspathDebugUnitTest', configuration ':home:app:kotlinCompilerPluginClasspathRelease', configuration ':home:app:kotlinCompilerPluginClasspathReleaseUnitTest', configuration ':home:app:kotlinKaptWorkerDependencies', configuration ':home:app:kotlinKlibCommonizerClasspath', configuration ':home:app:kotlinNativeCompilerPluginClasspath', configuration ':home:app:ktlintBaselineReporter', configuration ':home:app:ktlintReporter', configuration ':home:app:ktlintRuleset', configuration ':home:app:lintChecks', configuration ':home:app:lintPublish', configuration ':home:app:provided', configuration ':home:app:releaseAabPublication', configuration ':home:app:releaseAnnotationProcessor', configuration ':home:app:releaseAnnotationProcessorClasspath', configuration ':home:app:releaseApi', configuration ':home:app:releaseApiDependenciesMetadata', configuration ':home:app:releaseApiElements', configuration ':home:app:releaseApk', configuration ':home:app:releaseApkPublication', configuration ':home:app:releaseCompile', configuration ':home:app:releaseCompileClasspath', configuration ':home:app:releaseCompileOnly', configuration ':home:app:releaseCompileOnlyDependenciesMetadata', configuration ':home:app:releaseDexGuardConsumerRuleArtifacts', configuration ':home:app:releaseDexGuardConsumerRulesFiles', configuration ':home:app:releaseDexGuardFeatureLibraryjarArtifacts', configuration ':home:app:releaseDexGuardLibraryjarArtifacts', configuration ':home:app:releaseDexGuardUseLibraryArtifacts', configuration ':home:app:releaseImplementation', configuration ':home:app:releaseIntransitiveDependenciesMetadata', configuration ':home:app:releaseProvided', configuration ':home:app:releaseReverseMetadataValues', configuration ':home:app:releaseRuntimeClasspath', configuration ':home:app:releaseRuntimeElements', configuration ':home:app:releaseRuntimeOnly', configuration ':home:app:releaseRuntimeOnlyDependenciesMetadata', configuration ':home:app:releaseUnitTestAnnotationProcessorClasspath', configuration ':home:app:releaseUnitTestApi', configuration ':home:app:releaseUnitTestApiDependenciesMetadata', configuration ':home:app:releaseUnitTestCompileClasspath', configuration ':home:app:releaseUnitTestCompileOnly', configuration ':home:app:releaseUnitTestCompileOnlyDependenciesMetadata', configuration ':home:app:releaseUnitTestImplementation', configuration ':home:app:releaseUnitTestIntransitiveDependenciesMetadata', configuration ':home:app:releaseUnitTestRuntimeClasspath', configuration ':home:app:releaseUnitTestRuntimeOnly', configuration ':home:app:releaseUnitTestRuntimeOnlyDependenciesMetadata', configuration ':home:app:releaseWearApp', configuration ':home:app:releaseWearBundling', configuration ':home:app:runtimeOnly', configuration ':home:app:runtimeOnlyDependenciesMetadata', configuration ':home:app:testAnnotationProcessor', configuration ':home:app:testApi', configuration ':home:app:testApiDependenciesMetadata', configuration ':home:app:testApk', configuration ':home:app:testCompile', configuration ':home:app:testCompileOnly', configuration ':home:app:testCompileOnlyDependenciesMetadata', configuration ':home:app:testDebugAnnotationProcessor', configuration ':home:app:testDebugApi', configuration ':home:app:testDebugApiDependenciesMetadata', configuration ':home:app:testDebugApk', configuration ':home:app:testDebugCompile', configuration ':home:app:testDebugCompileOnly', configuration ':home:app:testDebugCompileOnlyDependenciesMetadata', configuration ':home:app:testDebugImplementation', configuration ':home:app:testDebugImplementationDependenciesMetadata', configuration ':home:app:testDebugIntransitiveDependenciesMetadata', configuration ':home:app:testDebugProvided', configuration ':home:app:testDebugRuntimeOnly', configuration ':home:app:testDebugRuntimeOnlyDependenciesMetadata', configuration ':home:app:testDebugWearApp', configuration ':home:app:testImplementation', configuration ':home:app:testIntransitiveDependenciesMetadata', configuration ':home:app:testProvided', configuration ':home:app:testReleaseAnnotationProcessor', configuration ':home:app:testReleaseApi', configuration ':home:app:testReleaseApiDependenciesMetadata', configuration ':home:app:testReleaseApk', configuration ':home:app:testReleaseCompile', configuration ':home:app:testReleaseCompileOnly', configuration ':home:app:testReleaseCompileOnlyDependenciesMetadata', configuration ':home:app:testReleaseImplementation', configuration ':home:app:testReleaseImplementationDependenciesMetadata', configuration ':home:app:testReleaseIntransitiveDependenciesMetadata', configuration ':home:app:testReleaseProvided', configuration ':home:app:testReleaseRuntimeOnly', configuration ':home:app:testReleaseRuntimeOnlyDependenciesMetadata', configuration ':home:app:testReleaseWearApp', configuration ':home:app:testRuntimeOnly', configuration ':home:app:testRuntimeOnlyDependenciesMetadata', configuration ':home:app:testWearApp', configuration ':home:app:wearApp']


> Task :home:app:canISayByeByeJetifier
[WARN] [XmlResourceScanner] No mapping for: android/support/FILE_PROVIDER_PATHS

> Task :home:app:canISayByeByeJetifier FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':home:app:canISayByeByeJetifier'.
> java.io.FileNotFoundException: /Users/kevin.zetterstrom/.gradle/caches/transforms-3/570c2dbe8d6866106ea2b6dfee7ac95b/transformed/junit-4.13.2.jar (No such file or directory)

* 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.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.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/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 13s
11 actionable tasks: 1 executed, 10 up-to-date

kevinzetterstrom avatar Jan 20 '22 21:01 kevinzetterstrom

Hi. Could you provide a small sample project so we can reproduce this bug?

maxirosson avatar Jan 20 '22 21:01 maxirosson

Oof. That may take a while, I was hoping there was a quick answer 😅

I have also deleted my entire ~/.gradle/caches folder and .gradle/configuration-cache without success.

kevinzetterstrom avatar Jan 20 '22 22:01 kevinzetterstrom

The above message was shown for a clean build. Seeing that its a junit missing file/directory, I ran compileDebugUnitTestSources, then ran canISayByeByeJetifier again. The output is slightly different, it now exists, but its a directory:

* What went wrong:
Execution failed for task ':home:app:canISayByeByeJetifier'.
> java.io.FileNotFoundException: /Users/kevin.zetterstrom/.gradle/caches/transforms-3/570c2dbe8d6866106ea2b6dfee7ac95b/transformed/junit-4.13.2.jar (Is a directory)

kevinzetterstrom avatar Jan 21 '22 15:01 kevinzetterstrom

Which gradle version?

maxirosson avatar Jan 21 '22 16:01 maxirosson

this is using 7.3.3

kevinzetterstrom avatar Jan 21 '22 18:01 kevinzetterstrom