dave08
01/16/2022, 4:03 PMe: .../app/build.gradle.kts:10:45: Unresolved reference: util
e: .../app/build.gradle.kts:11:65: Unresolved reference: newDataInputStream
I updated to gradle 7.3.3 and android plugin 7.0.4...dave08
01/16/2022, 4:04 PMval localProps: java.util.Properties = java.util.Properties()
localProps.load(project.rootProject.file("my-local.properties").newDataInputStream())
Vampire
01/16/2022, 4:35 PMjava-base
plugin (or one that applies it) applied, then java
is an extension.
The java
extension wins over the java
package.
You instead need to import the class you want to use as there it is unambiguous that you want the package, not the extension.Vampire
01/16/2022, 4:36 PMjava
extension does not have a util
property which is what the error is telling youdave08
01/16/2022, 4:37 PMVampire
01/16/2022, 4:38 PMVampire
01/16/2022, 4:40 PMjava
is just natural.Vampire
01/16/2022, 4:40 PMdave08
01/16/2022, 4:42 PMVampire
01/16/2022, 4:43 PMVampire
01/16/2022, 4:43 PMVampire
01/16/2022, 4:43 PMdave08
01/16/2022, 4:46 PM