Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

AGP 7.3 Cannot convert the provided notation to a File or URI #8

Open
badoualy opened this issue Oct 27, 2022 · 0 comments
Open

AGP 7.3 Cannot convert the provided notation to a File or URI #8

badoualy opened this issue Oct 27, 2022 · 0 comments

Comments

@badoualy
Copy link

When upgrading to Android Gradle Plugin 7.3 the following issue is appearing:

Cannot convert the provided notation to a File or URI: [C:\Users\XX\workspace\gradle-konfig\test-app\app\build\generated\source\konfig\preprod\debug].

The issue might be on windows only.
The line causing the issue is
configuration.sourceSets[variant.name].java.srcDir(outputDirectory)
where outputDirectory is a File, so this is clearly an issue with the AGP plugin.

In the mean time, I removed this line to bypass the issue. It's still working because it looks like you don't need to register the dir manually if it's in the default build/generated directory. Or it might be because I'm using other libs like dagger that might be registering the whole directory.

If anyone has the same bug, you can use the following artifact available on jitpack:

com.github.badoualy.gradle-konfig:fr.sjcqs.konfig.gradle.plugin:1902fc41b2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant