Hi , why can't i `import java.io.File` please ? M...
# android
j
Hi , why can't i
import java.io.File
please ? My environment : ./gradlew -version
------------------------------------------------------------
Gradle 7.0.2
------------------------------------------------------------
Build time:   2021-05-14 12:02:31 UTC
Revision:     1ef1b260d39daacbf9357f9d8594a8a743e2152e
Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.12 (Oracle Corporation 11.0.12+8-LTS-237)
OS:           Mac OS X 11.5 x86_64
m
I experienced this also. Everything compiles but the IDE showed incorrect errors.
w
i was having an issue with the IDE reporting an error incorrectly. I wound up deleting the IDE and all of its cache files since nothing else seemed to work https://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio-on-mac/18458893#18458893
j
Beacuse of lack of java.io.file . my test case cases of code coverage are failing as you can see here. I am creating testcases for codecoverage which is wrapper of jacoco plugin . Here There are two part . 1. gradle.kts where i am building custom sdk called quality tool which is combination of multiple plugins . Here i am using kotlin dsl . 2. To write test cases of codecoverage i am creating Temporary folder in virtual memory where i am creating build.gradle ( groovy)  Failed to apply plugin kotlin android when i run test cases . complete details of issue I have raised here : https://youtrack.jetbrains.com/issue/KT-48853