Does someone know how to fix this "false-positive"...
# gradle
c
Does someone know how to fix this "false-positive" error from the IDE in the gradle files? Im using the latest android studio version on the stable channel (Android Studio Arctic Fox | 2020.3.1) and this is driving me crazy, it's really annoying. The IDE highlight the imports as error but the app still runs/deploy normally
c
i had a similar problem and solved it by changing the SDK to java 16.0.2
👀 1
c
Hi Christian, Thanks for the advice, I'll definitely gonna try that
n
I have a similar problem but upgrading the Java SDK did not solve it.
c
Hi Norbert, how did you solve it then? I still haven't tried Christian solution.
n
I could not solve it 😞 I had to switch to another project so I will investigate it later...
v
I had such "problems" with Groovy build scripts in the past (not Android and not Android Studio, but normal Java projects and normal IntelliJ IDEA). I did not really try to solve those problem but just ignored them in my brain. But I didn't see such problems for a long time, which probably is because I exclusively use Kotlin DSL nowadays if I can. Never had such issues with Kotlin DSL build scripts. Btw. if you are using Gradle 7, you might want to try out the new version catalogs feature to replace your
Libs
class. 🙂 https://docs.gradle.org/current/userguide/platforms.html
c
Hi @Vampire, thanks for that detailed answer. I usually ignore it but now it's annoying (after it still happens in a lot of projects). I will check it out the link in your reply, thanks.